Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Zvolensky on September 22, 2016, 03:25:07 pm

Title: Simple statistics
Post by: Zvolensky on September 22, 2016, 03:25:07 pm
Hello
Is there a simple way of counting the number of
inside one package? (including possible subpackages)
Thx
Maros
Title: Re: Simple statistics
Post by: PeterHeintz on September 22, 2016, 06:34:22 pm
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.
Title: Re: Simple statistics
Post by: qwerty on September 22, 2016, 07:55:12 pm
To get counters per package you need to write a SQL and/or a script. Elements is easy:
Code: [Select]
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.
Title: Re: Simple statistics
Post by: Zvolensky on September 23, 2016, 02:01:12 pm
Hello
Thank you for the answers. will try it out