Book a Demo

Author Topic: Dependency and Custom departments not working  (Read 15466 times)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Dependency and Custom departments not working
« Reply #15 on: September 01, 2016, 08:17:09 am »
What does the shape script look like?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Dependency and Custom departments not working
« Reply #16 on: September 01, 2016, 09:11:38 am »
It's exactly that from the help (see also first post).

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Dependency and Custom departments not working
« Reply #17 on: September 01, 2016, 09:34:59 am »
I just got this to work, so I'll retrace my steps. (Note, I'm using EA 13 so the instructions will be for the ribbon interface not the menu).

Drop a class on a diagram. Double-click to open its properties and give it a stereotype, one that doesn't already exist. Click OK. From ribbon, Configure|Reference Data|UML Types and select the stereotype, click the "Shape Script" radio button and click Assign. Paste the shape from the first post in this thread into the shape script editor. Click OK, Save, Close. Drop another element onto the diagram and drag a dependency from the stereotyped class to the new element. Remove the new element from the diagram. Save the diagram. Reload diagram. Select the stereotyped class and press Ctrl+Shift+Y. The checkbox "Dependson" will have appeared under Show Element Compartments. Tick it and click OK.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Dependency and Custom departments not working
« Reply #18 on: September 01, 2016, 07:11:13 pm »
There we are. The DependsOn only appears in V13, not in V12.

q.

P.S. As we already grabble in bug box:
a) When I remove the dependency, the shape still states "Depends On". I need to close/open the diagram.
b) Depends On is wrong in this context. It implies that the class showing this text depends on another class. But actually it's vice versa and the other class depends on this one.
« Last Edit: September 01, 2016, 07:25:49 pm by qwerty »

Giu Platania

  • EA User
  • **
  • Posts: 88
  • Karma: +4/-0
  • As Above so Below
    • View Profile
    • Linkedin
Re: Dependency and Custom departments not working
« Reply #19 on: June 20, 2019, 02:42:31 am »
I know this is an old discussion, however I'm trying to implement the element dependency shape script
https://sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/add_custom_compartments_to_ele.html
and this is not working

version 14.1.1429 the checkbox Dependson is not present in a steretyped class created  following those instractions:
I just got this to work, so I'll retrace my steps. (Note, I'm using EA 13 so the instructions will be for the ribbon interface not the menu).

Drop a class on a diagram. Double-click to open its properties and give it a stereotype, one that doesn't already exist. Click OK. From ribbon, Configure|Reference Data|UML Types and select the stereotype, click the "Shape Script" radio button and click Assign. Paste the shape from the first post in this thread into the shape script editor. Click OK, Save, Close. Drop another element onto the diagram and drag a dependency from the stereotyped class to the new element. Remove the new element from the diagram. Save the diagram. Reload diagram. Select the stereotyped class and press Ctrl+Shift+Y. The checkbox "Dependson" will have appeared under Show Element Compartments. Tick it and click OK.

Giuseppe Platania
Enterprise Architect
Door Business Consulting
+++
"As above so below, to accomplish the miracles of the One Thing" - Trismegistus
===
The above content reflects my own opinion and is not endorsed by Monthy Python
***
The above is NOT a reference to Monty Python