Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: cuninghamd on September 18, 2007, 03:30:03 am

Title: display of tagged values in diagrams
Post 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.
Title: Re: display of tagged values in diagrams
Post by: B3ip on September 18, 2007, 04:40:18 pm
see Help: print("#TAG:condition#");
Title: Re: display of tagged values in diagrams
Post by: RoyC on September 18, 2007, 05:22:28 pm
That's

http://www.sparxsystems.com.au/EAUserGuide/index.html?displaying_element_properties.htm

Roy
Title: Re: display of tagged values in diagrams
Post by: cuninghamd on September 19, 2007, 12:09:03 am
 :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.
Title: Re: display of tagged values in diagrams
Post by: «Midnight» on September 19, 2007, 02:57:37 am
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
Title: Re: display of tagged values in diagrams
Post by: cuninghamd on September 19, 2007, 03:32:13 am
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.

Title: Re: display of tagged values in diagrams
Post by: Eve on September 19, 2007, 01:12:26 pm
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.
Title: Re: display of tagged values in diagrams
Post by: cuninghamd on September 19, 2007, 01:22:19 pm
 :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.
Title: Re: display of tagged values in diagrams
Post by: «Midnight» on September 20, 2007, 05:39:51 am
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