Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: aviv on September 11, 2014, 08:36:05 pm
-
I would like to get all packages (also the nested ones) if a branch.
(Isn't it a good idea for a new ability of API? I'm surprised it is not exist as a property of EA.Package [smiley=undecided.gif])
The way is to loop on the collection package.Packages.
Does EA.collection implements <IEnumerable>?
-
I guess the reason is simply that returning the nested packages would also bear the need for the structure of those. So you'd parse either way. Write a wrapper that returns a collection of nested packages in the order you want it.
q.
-
Thanks. I'll try and update.