Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: rupertkiwi on December 05, 2022, 01:38:16 pm
-
Hi,
Does anyone have a VB script handy to list elements in a package and the element's children?
thanks
-
You do.
Open the scripting window.
Expand the "Local Scripts"
The script you want is called "VBScript - Recursive Model Dump Example".
-
If you find that slow, there's a faster alternative using SQL:
https://sparxsystems.com/forums/smf/index.php/topic,38987.msg259113.html#msg259113 (https://sparxsystems.com/forums/smf/index.php/topic,38987.msg259113.html#msg259113)
Geert
-
Thanks Geert.
I have been using that recursive script and it works well for a single level of element but I also want to get the elements that are nested under other elements, I'm having a bit of trouble with it.
Rupert
-
Rupert,
The idea of the SQL Query method is to call that one recursively untill you have all the ID's of all nested elements.
That is definitely the fastest way to get the elements.
Geert