Book a Demo

Author Topic: Create DiagramLink and make it visible  (Read 2172 times)

Lars J.

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Create DiagramLink and make it visible
« on: March 23, 2012, 10:17:45 pm »
Hi all,

I am developing a plugin for EA. Currently I have code which creates a Connector between two ports. Now I want to see the connector on the currently open diagram (because I have selected the two ports on it.

So I create a DiagramLink object, add it to the DiagramLinks collection, update everything and still do not see the connector. What would I have to do to see this connector instantly on my open diagram?


EDIT:

Just found out how to do it: Repository.ReloadDiagram() does the right Job.

Lars
« Last Edit: March 23, 2012, 10:34:25 pm by califax2k »