Book a Demo

Author Topic: Get multiple tree selected packages C#  (Read 4614 times)

lostwald

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Get multiple tree selected packages C#
« 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
« Last Edit: March 14, 2014, 08:08:17 pm by lostwald »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Get multiple tree selected packages C#
« Reply #1 on: March 14, 2014, 10:00:52 pm »
The latter. It's call EAUI (EA Unique Interface).

q.

Stephane B

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Get multiple tree selected packages C#
« Reply #2 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