Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: lostwald on March 14, 2014, 07:49:47 pm

Title: Get multiple tree selected packages C#
Post by: lostwald on March 14, 2014, 07:49:47 pm
Hi,
I'm searching for a way to get multiple selected packages in the Project Browser. GetTreeSelectedElements() doesn't return packages, GetTreeSelectedPackage() only one package. Have I missed something or is it not possible ?

I'm using EA10 and C# to write the AddIn.

Greetings,
lostwald
Title: Re: Get multiple tree selected packages C#
Post by: qwerty on March 14, 2014, 10:00:52 pm
The latter. It's call EAUI (EA Unique Interface).

q.
Title: Re: Get multiple tree selected packages C#
Post by: Stephane B on May 12, 2014, 10:48:34 pm
It has previously been acknowledged as a missing feature in several posts like this one:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1332323656/0#0

As a workaround, it might be possible to use the EA_OnContextItemChanged or EA_MenuClik event handlers in order to keep track of the selected packages at any time.

Give it a try and tell us.

Stéphane