Book a Demo

Author Topic: Select DiagramObject in Diagram  (Read 3618 times)

emiliano.davila

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Select DiagramObject in Diagram
« on: October 14, 2022, 02:07:17 am »
Hello everyone.
I am currently developing an addin and I want to know if there is any method or some other way to be able to select on the diagram (similar to find on diagram).



Best regards!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Select DiagramObject in Diagram
« Reply #1 on: October 14, 2022, 02:16:51 am »
There's a collection Repository.SelectedObjects where you can add the elements to be selected on the currently open diagram. Not sure about the focus, though. I'd guess it would be more or less random (or the usual unpredictable EA choice).

q.
« Last Edit: October 14, 2022, 02:19:02 am by qwerty »

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Select DiagramObject in Diagram
« Reply #2 on: October 14, 2022, 09:18:04 am »
Hello emiliano,

Diagram.FindElementInDiagram must help you.

HTH,
--
t-kouno

emiliano.davila

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Select DiagramObject in Diagram
« Reply #3 on: October 17, 2022, 11:22:16 pm »
Thank you for your recommendations, they were very helpful!