Book a Demo

Author Topic: Shape script instance color  (Read 4201 times)

royvanmarrewijk

  • EA User
  • **
  • Posts: 61
  • Karma: +1/-0
    • View Profile
Shape script instance color
« on: June 15, 2017, 10:36:37 pm »
Hi,

In my profile I created a stereotype "component" that inherits from a SysML::Block. Within this stereotype I used the Shape Script to set the color of the component depending on the value of a tagged value. This works fine but when I create an instance of the component it got the EA default color and I would like to inherit the color of the component. Can anyone tell me how to achieve this?

In the profile of the component I set the "Instance behaviour -> Type" to itself, is this the right way to create instances?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Shape script instance color
« Reply #1 on: June 15, 2017, 11:18:33 pm »
I guess you can't, except you would use EXEC_ADDIN to find the classifier.

q.