Author Topic: Simple statistics  (Read 1732 times)

Zvolensky

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
  • Do... or do not. There is no try.
    • View Profile
Simple statistics
« 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

PeterHeintz

  • EA User
  • **
  • Posts: 738
  • Karma: +45/-16
    • View Profile
Re: Simple statistics
« Reply #1 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.
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 9579
  • Karma: +167/-148
  • I'm no guru at all
    • View Profile
Re: Simple statistics
« Reply #2 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.

Zvolensky

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
  • Do... or do not. There is no try.
    • View Profile
Re: Simple statistics
« Reply #3 on: September 23, 2016, 02:01:12 pm »
Hello
Thank you for the answers. will try it out