Book a Demo

Author Topic: Selecting Element in Diagram, possible?  (Read 4482 times)

Kikai_no_Tenshi

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Selecting Element in Diagram, possible?
« on: April 17, 2007, 02:55:31 am »
Hello, me again...

I want to ask if it is possible to select an Element in the Diagram-view, and also the other way round, if it is possible to check if an Element is selected in the Diagram-view.

I tried different things, like checking the tagged values and the stereotypes but I don't get it.

Is it an property of Element or Diagramobjects or am I totally wrong and it is not possible to do that?

edit:

OK found out that it will work with Diagram.SelectedObjects, now I just have to find out how...

edit_2:

OK it's not working because Diagram.SelectedObjects is a read-only collection...

I can find out which Element is selected, but i can't add a new selected object with Diagram.SelectedObjects.AddNew("", "").

Is there an other way to select an Element in the Diagramview?
« Last Edit: April 17, 2007, 04:12:54 am by Kikai_no_Tenshi »

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Selecting Element in Diagram, possible?
« Reply #1 on: April 17, 2007, 02:37:33 pm »
No, it is not currently possible to select an element on the diagram window from automation.  You can currently only control selection in the Project Browser window by using Repository.ShowInProjectView(object).

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Selecting Element in Diagram, possible?
« Reply #2 on: April 17, 2007, 03:09:28 pm »
Hopefully Aaron, this will become available in "the next major version."
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Selecting Element in Diagram, possible?
« Reply #3 on: April 17, 2007, 06:42:19 pm »
Quote
Hopefully Aaron, this will become available in "the next major version."
Yes, please!

We'll be ready to use it then...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Kikai_no_Tenshi

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Selecting Element in Diagram, possible?
« Reply #4 on: April 17, 2007, 10:18:08 pm »
That would be fine  ;)

Thanks for your replies!