1
Automation Interface, Add-Ins and Tools / Insert a Legend
« on: April 13, 2017, 11:35:13 pm »
Hi,
I managed to insert a Legend in a Diagram with a Script
How can I fill these legend with values using a script.
I inserted a legend using the "normal" way in sparx and searched for any reference in the database.
But I just found the SubType 76 Statement and some values in the StyleEx Row.
But where are the values and colors of the Legend defined ?
Maby someone has hint for me?
/Benny
I managed to insert a Legend in a Diagram with a Script
Code: [Select]
set legend = currentPackage.Elements.AddNew( "", "Text")
hyperLink.Subtype = 76
How can I fill these legend with values using a script.
I inserted a legend using the "normal" way in sparx and searched for any reference in the database.
But I just found the SubType 76 Statement and some values in the StyleEx Row.
But where are the values and colors of the Legend defined ?
Maby someone has hint for me?
/Benny