Book a Demo

Author Topic: How to count elements?  (Read 8608 times)

aguevara

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
How to count elements?
« 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
« Last Edit: September 05, 2013, 07:17:09 am by aguevara »

rothnic

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: How to count elements?
« Reply #1 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to count elements?
« Reply #2 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 for more info.

Geert