Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: harvinder on February 25, 2011, 12:05:15 pm

Title: Display Qualified name in shape script
Post by: harvinder on February 25, 2011, 12:05:15 pm
Is it possible to display qualified name of a tag using shape script? If yes how can it be done.

thanks
harvinder
Title: Re: Display Qualified name in shape script
Post by: thea on March 16, 2011, 05:43:55 pm
Could you please elaborate your question? What shape script? Is this from Visio?
Title: Re: Display Qualified name in shape script
Post by: stao on March 16, 2011, 08:52:02 pm
i dont know what you mean with "qualified name"
but you can display the value of a tagged value.

Code: [Select]
print("#TAG:condition#");
where condition is the name of the tag you want to display.
you can although check the value of tagged values.

Code: [Select]
if(HasTag("horizontal","true")) {
...
}

if the element has a tagged value with the name horizontal and the value == true then...


Stao
Title: Re: Display Qualified name in shape script
Post by: harvinder on May 02, 2011, 05:04:26 pm
Say there is a package ContainerA which has a Class named ClassB with and attribute called AttributeC.

Qualified name for AttributeC would be ContainerA.ClassB.AttributeC. at least that is what I am looking for.

thanks
harvinder