Author Topic: Diagram.SelectedConnector, unselect the connector on a Diagram ??  (Read 770 times)

Hoefler1

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
One simple task:
The Add-In has to unselect the currently selected Connector on a Diagram (if there is one selected).
It can be accessed by Diagram.SelectedConnector
The attribute is Read/Write, so I wanted to set it to null, which leads to this error: Invalid interface passed to 'SetSelectedConnector'.

Any ideas?

qwerty

  • EA Guru
  • *****
  • Posts: 8959
  • Karma: +136/-123
  • I'm no guru at all
    • View Profile
Re: Diagram.SelectedConnector, unselect the connector on a Diagram ??
« Reply #1 on: March 17, 2016, 08:05:51 pm »
I guess you should report this as bug. Probably you can mimic it meanwhile by saving the SelectedObjects, reloading the diagram and re-selecting the objects :-/

q.
« Last Edit: March 17, 2016, 08:08:30 pm by qwerty »

Hoefler1

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Diagram.SelectedConnector, unselect the connector on a Diagram ??
« Reply #2 on: March 17, 2016, 08:26:19 pm »
Thank you!  :D
Works fine now. And I just had to add one simple line (Repository.ReloadDiagram(Diagram.DiagramID);)
Hadn't thought of that simple solution.
I'll still send a bug report for the SelectedConnector.