Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Zvolensky on September 22, 2016, 03:25:07 pm
-
Hello
Is there a simple way of counting the number of
- all the objects
- connectors linked to objects
- all the diagrams
inside one package? (including possible subpackages)
Thx
Maros
-
A simple way (whatever simple is) you have on project level. You find that feature under “Poject/Status/Tab Project Statistics.
So, a simple way to do that on package level might be to export/import the package in an empty project.
-
To get counters per package you need to write a SQL and/or a script. Elements is easy:
SELECT COUNT(*) FROM t_object WHERE t_object.Package_ID=#Branch#
. This will however count the package as element too. Connectors is tricky. Will you count only connectors completely inside or also those reaching elements outside the selected package. So probably the best choice is a small script.
q.
-
Hello
Thank you for the answers. will try it out