Book a Demo

Author Topic: ShapeScript  (Read 3496 times)

Falte

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
ShapeScript
« on: January 16, 2015, 11:53:26 pm »
Hello,

my fist language is german thus please excuse my english...
Now my problem. I have made an UML-Profile in Enterprise Architect. One Stereotype have different Attributes. Now, I want to write a Shape Script that checked a specific Attributed and write the Value of it in the Diagram. Is it possible? When yes, how?

Best regards,

Falte

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ShapeScript
« Reply #1 on: January 17, 2015, 12:20:12 am »
You can check for tags and properties directly. To query existence of attributes you need to write an add-in that will do the job and return a result you can evaluate in the script. Maybe you should think of using a tagged value to control the shape.

q.

Falte

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: ShapeScript
« Reply #2 on: January 17, 2015, 01:23:57 am »
Sorry I don't understand your answer. I have a TaggedValue in the diagram that use my profile. Now, I want print out the value of the TaggedValue into a subshape with println. But I don't know how i get the Value. Do you understand me?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ShapeScript
« Reply #3 on: January 17, 2015, 02:05:20 am »
That's clearer now  :)

Code: [Select]
Println("#TAG:<tagname>#");

q.

Falte

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: ShapeScript
« Reply #4 on: January 17, 2015, 02:08:53 am »
Thank you.