1
Automation Interface, Add-Ins and Tools / Re: Adding a legend with values to a diagram via script.
« on: January 03, 2025, 11:20:25 pm »
Hi All
I have achieved this via a Model Based add-in, but as Geert says it is NOT trivial.
In addition to creating a Text element with a subtype = 76, all the legend stuff is located in t_xref with a specific ; delimited string and the RGB values must be stored in EA's own integer values this entry is then cross referenced to the Text element. This requires a new entry per legend to be created in t_xref with each having its own GUID.
Phil
I have achieved this via a Model Based add-in, but as Geert says it is NOT trivial.
In addition to creating a Text element with a subtype = 76, all the legend stuff is located in t_xref with a specific ; delimited string and the RGB values must be stored in EA's own integer values this entry is then cross referenced to the Text element. This requires a new entry per legend to be created in t_xref with each having its own GUID.
Phil