Book a Demo

Author Topic: scripting diagramobject showing structural element  (Read 3162 times)

mnw

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
scripting diagramobject showing structural element
« on: August 25, 2020, 03:38:44 pm »
i was able to create a component diagramobject in the component diagram.  but how to create a component diagramobject showing structural element (in my case is the interfaces)?
        dsize="l=20;r=200;t="& cstr(top) & ";b="& cstr(top+50) & ";"
        'session.output(dsize)
        set v=d1.DiagramObjects.AddNew(dsize,"")               
        top=top+100
        v.elementId(eSender.ElementID)   
       



Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: scripting diagramobject showing structural element
« Reply #1 on: August 25, 2020, 04:11:25 pm »
Hello,

There's no single "add structural elements" operation.
You need to create separate diagram objects for each structural element.

HTH,

/Uffe
My theories are always correct, just apply them to the right reality.