Author Topic: Display Qualified name in shape script  (Read 2679 times)

harvinder

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Display Qualified name in shape script
« 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

thea

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Display Qualified name in shape script
« Reply #1 on: March 16, 2011, 05:43:55 pm »
Could you please elaborate your question? What shape script? Is this from Visio?
---------------------------------------------------------------------------------------------------------------
If your tried 10x and failed, try again.  We'll never know if we'll get it right on our next try.

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Display Qualified name in shape script
« Reply #2 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

harvinder

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Display Qualified name in shape script
« Reply #3 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