Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: cuninghamd on September 18, 2007, 03:30:03 am
-
I'm trying to display tagged values in a diagram where I have defined the shape using a shape script (for a stereotype) & can't find out how to access the tagged values in order to display them. ( and allow editing of the tagged values within the diagram).
Hope you can help.
Thanks,
Dave.
-
see Help: print("#TAG:condition#");
-
That's
http://www.sparxsystems.com.au/EAUserGuide/index.html?displaying_element_properties.htm
Roy
-
:D Thanks B3ip for the syntax - could not find it in the help file (anywhere) - the link that was sent by RoyC returned a blank page. - now just need to make the tag editable in the model view - or is that just impossible ?
Dave.
-
Dave,
Try the link again. I've been able to get the page to display.
Otherwise, in the Help index (for build 816) find Shape Scrips. Under that you will find Displaying Element Properties. That's the page Roy is referencing.
David
-
David,
I've just tried the link again - it works this time. Thanks. The help file i've got (for EA 7.0 build 815) does not have that very helpful text:
"In addition to the properties listed below, Tagged Values can also be displayed by prefixing the Tagged Value name with TAG:.
For example: print("#TAG:condition#");"
which is in the on line version.
Thanks for the info.
Any help on my question re making the tag editable in the model view ? - Seems not possible as the help only states that the following fields can be designated editable:
"alias", "name", "note", "stereotype"
Dave.
-
You can't edit tagged values directly on non-shape scripted elements, and I don't think there is a way to do it on shape scripted elements.
-
:D Simon,
thanks for the confirmation :( Pity you can't - it would be a useful feature ( rather than having to have a seperate view open).
Thanks again.
Dave.
-
Dave,
In the meantime, remember that you can download the most recent help file, even if you don't want to upgrade to the current EA build. It is on the download page in compiled HTML and zipped formats.
David