Book a Demo

Author Topic: ShapeScript: Change connector end  (Read 3726 times)

jakob

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
ShapeScript: Change connector end
« on: June 23, 2011, 12:54:15 am »
Hi all,

I have a custom connector that's visualization of its target end should vary according to a certain attribute of the target element.

Is it somehow possible to check attributes of a connector's target element in a shapescript?

Thank you!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: ShapeScript: Change connector end
« Reply #1 on: June 23, 2011, 08:52:44 am »
From a connector shape script, you can test against or display the following properties of the target element:

target.element.name
target.element.stereotype
target.metatype

Sorry, no access to information about a target element's attributes.
The Sparx Team
[email protected]

David Rains (bioform)

  • EA User
  • **
  • Posts: 84
  • Karma: +0/-0
    • View Profile
Re: ShapeScript: Change connector end
« Reply #2 on: June 23, 2011, 02:51:14 pm »
Well you do know the ID of the element that is the target... so you just keep going....