Book a Demo

Author Topic: Diagrams in element compartment  (Read 4298 times)

Mats Gejnevall

  • EA User
  • **
  • Posts: 98
  • Karma: +1/-0
    • View Profile
Diagrams in element compartment
« on: October 18, 2018, 01:34:19 am »
Hi all,
I want to be able to link an element to a number of diagrams and show all the linked diagrams in a compartment in that element. Then I should be able to click on any of diagram names in the compartment to display that diagram. Is that possible? Can I do a shape script to handle this? Or is it already possible in EA?

Thanks
Mats

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Diagrams in element compartment
« Reply #1 on: October 18, 2018, 07:45:12 am »
You can create hyperlinks (context/Common/...) or drag diagrams directly on a diagram. In the latter case you can decide how to show them (as diagram frame, etc.). You can create links for all of them.

q.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Diagrams in element compartment
« Reply #2 on: October 18, 2018, 07:46:01 am »
Yes you can create links from elements to diagram using links in properties of element but not seen the ability to put those links into compartments on the element within a diagram. It may be possible via shapescripts but I haven't seen it.
If you generated HTML you get to see the links.

Bit of a kludge but you could drag the diagram onto another diagram and create a hyperlink then overlay onto an element.
« Last Edit: October 18, 2018, 07:48:21 am by Sunshine »
Happy to help
:)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Diagrams in element compartment
« Reply #3 on: November 08, 2018, 04:09:11 am »
Hi Mats,

Where you able to implement this via a shapescript / compartments ? Its exactly what I'm after as well.

Regards,

Jon.

Mats Gejnevall

  • EA User
  • **
  • Posts: 98
  • Karma: +1/-0
    • View Profile
Re: Diagrams in element compartment
« Reply #4 on: December 20, 2018, 07:15:10 pm »
I have tried it with shape scripts. I added a relation to the diagram (e.g. trace) and then added the attached shape script. It shows the diagram names in a compartment, but when clicking on the name of the diagram it brings up the diagram element, NOT the diagram itself. Maybe there is some shape script magic to fix this, I don't know. Or maybe I should add a improvement suggestion to EA.
Code: [Select]

     if(HasProperty("Connector.StereoType", "trace"))
     {
         SetCompartmentName("Related diagrams");
         AppendCompartmentText("#Name#");
     }