Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: RoyClem on December 14, 2004, 01:45:24 pm

Title: Diagram Elements
Post by: RoyClem 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
Title: Re: Diagram Elements
Post by: thomaskilian 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  :)
Title: Re: Diagram Elements
Post by: RoyClem 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.
Title: Re: Diagram Elements
Post by: KP 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.