Book a Demo

Author Topic: Counting packages and elements  (Read 5514 times)

radio99

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Counting packages and elements
« on: March 04, 2016, 01:39:53 pm »
I have a very large model (root node and hundreds of sub-packages) all under version control.  I have been asked to provide a count on the number of sub-packages and also the total elements in the model.   Is there a way to retrieve this via a built-in function or using the sql engine within EA?   

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Counting packages and elements
« Reply #1 on: March 04, 2016, 02:52:46 pm »
From the main menu go Project > Status and then look at the Project Statistics tab.
The Sparx Team
[email protected]

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Counting packages and elements
« Reply #2 on: March 04, 2016, 04:54:03 pm »
Hi,

another possibility is SQL. With SQL you get almost everything from the repository.

An example relating your case:
select count(*), Object_Type from t_object group by Object_type

Regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)