Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: aguevara on September 05, 2013, 07:11:40 am

Title: How to count elements?
Post by: aguevara on September 05, 2013, 07:11:40 am
I have a model in which I have many activity diagrams containing many partitions representing not only the System itself, but also the users/actors interfacing with the System.
I would like to find out if there is any way to have EA count the number of elements I have created so I don't have to do it by hand; the model is large of course.
Is there a way to have EA produce a report containing this information?

Thanks in advance,
Angelo
Title: Re: How to count elements?
Post by: rothnic on September 05, 2013, 08:56:46 am
Yes, there are a number of ways based on what you are trying to accomplish.

-You can use a regular search through the search builder "ctrl-f", then narrow it down to the object type, stereotype, etc of what you want to find. It will output the items, and at the bottom of the window it will say "search returned x results"
-You can do the same, except with a SQL search through the search builder
-You can slightly modify the included script in Tools->Scripts->Local Scripts->JScript - Recursive Element Count Example
Title: Re: How to count elements?
Post by: Geert Bellekens on September 05, 2013, 03:52:22 pm
I would probably go for the SQL Search option.
See Harvesting the power of EA’s SQL searches (http://bellekens.com/2011/01/14/harvesting-the-power-of-eas-sql-searches/) for more info.

Geert