Book a Demo

Author Topic: How to show selected object in one diagram?  (Read 4209 times)

James Chan

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
How to show selected object in one diagram?
« on: January 06, 2013, 02:23:09 pm »
Hi, anybody,

    We want to show diagram object that is selected in one open diagram so that to highlight it. How can we do it?
Thank you!

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: How to show selected object in one diagram?
« Reply #1 on: January 06, 2013, 06:43:30 pm »
'Highlight' where?? In the project browser? -> Use context menu 'Find->In project browser' or one of the other options.

May be I didn't get your question ...

HTH
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

James Chan

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: How to show selected object in one diagram?
« Reply #2 on: January 07, 2013, 01:21:49 pm »
Highlight in one diagram achived by our addin but not that by native EA UI such as "Find->In project browser" or "Find->In All Diagram".
We did not find any API supporting that.

Quote
'Highlight' where?? In the project browser? -> Use context menu 'Find->In project browser' or one of the other options.

May be I didn't get your question ...

HTH
Günther

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: How to show selected object in one diagram?
« Reply #3 on: January 07, 2013, 03:51:25 pm »
Repository.ShowInProjectView should give you a similar effect to the Find In Project Browser command.

Unfortunately there is nothing similar to the "Find in all Diagrams" command at this time.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to show selected object in one diagram?
« Reply #4 on: January 07, 2013, 06:20:41 pm »
"Find in all diagrams" is not that difficult to simulate.

I'm using something similar in my EA Navigator addin.

This window: https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/blob/master/EANavigator/NavigatorList.cs
can be used to navigate to most types of elements, including diagram.
It is used when you use the context menu options to navigate to elements or diagrams.

Geert

James Chan

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: How to show selected object in one diagram?
« Reply #5 on: January 08, 2013, 02:34:17 pm »
Good, thank you! We'll check your way.

Quote
"Find in all diagrams" is not that difficult to simulate.

I'm using something similar in my EA Navigator addin.

This window: https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/blob/master/EANavigator/NavigatorList.cs
can be used to navigate to most types of elements, including diagram.
It is used when you use the context menu options to navigate to elements or diagrams.

Geert