Author Topic: Diagram Elements  (Read 4802 times)

RoyClem

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Diagram Elements
« on: December 14, 2004, 01:45:24 pm »
Greetings,

I need to know when a StateFlow arrow is selected by the mouse so that I can retrieve it's properties, in particular it's link name.

I know how to retrieve the link name I just need to know when a user selects the arrow.

Is there anyway, documented or not, that the EA Automation Interface or an Add-in can detect when a user selects a diagram element?

By the way, does anyone in Sparx Support ever read these forum messages?

Thanks,

Roy
« Last Edit: December 14, 2004, 01:49:35 pm by RoyClem »

thomaskilian

  • Guest
Re: Diagram Elements
« Reply #1 on: December 14, 2004, 02:50:08 pm »
No chance for me to test it now, but EA should return the selected element as parameter (if you specify that). No idea whether this also returns are relation or just "real" elements ???

Edit: Just tried and no luck. You only get "real" elements, no associations, relations a.s.o.  :(

Look out for posts with 5 red stars. They are from Sparx staff. I'm pretty shure they are reading all posts regularly  :)
« Last Edit: December 15, 2004, 02:06:39 am by thomaskilian »

RoyClem

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Diagram Elements
« Reply #2 on: December 15, 2004, 04:59:08 am »
Thanks for your reply. I've decided to take a different approach. I'm going to write an Add-In that is invoked by a menu item. The menu item will only be available when the state diagram is displayed and the Add-In will provide the functionality I need.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Diagram Elements
« Reply #3 on: December 15, 2004, 03:23:19 pm »
The Automation Interface has a Diagram.SelectedObjects collection, but doesn't have the equivalent way of working out which connector, if any, is selected. We will have a go at adding this some time in the new year.
The Sparx Team
[email protected]