Book a Demo

Author Topic: How to add element and connector by script  (Read 5230 times)

jakson

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
How to add element and connector by script
« on: September 30, 2015, 03:36:53 am »
How to add (on diagram) link to element (x,y) and link to connector?

I'e created elements and connectors with types:
EA.Element
EA.Connector
...and have problems with adding above to the diagram using:
EA.DiagramObject
EA.DiagramLink

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to add element and connector by script
« Reply #1 on: September 30, 2015, 06:02:36 am »
You don't need diagramLink unless you want to suppress the connector or add bending points. Just add elements to diagramObject passing the diagram coordinates is enough.

q.