Book a Demo

Author Topic: Accessibility of Auto Generated Level Numbers to Scripts?  (Read 2857 times)

ctisone

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Accessibility of Auto Generated Level Numbers to Scripts?
« on: April 08, 2021, 10:45:36 am »
I have turned on level numbering for certain packages to show the ordering and nesting level of requirements.  I am now running a VBScript against the model and would like to access those level numbers, but am unable to find the correct API to call.  Anyone have an idea?  Thanks in advance!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Accessibility of Auto Generated Level Numbers to Scripts?
« Reply #1 on: April 08, 2021, 02:15:10 pm »
I don't think the level numbers are stored somewhere or are available through the API.

Looks like you will need to write your own logic to determine the level numbering.

Geert

ctisone

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Accessibility of Auto Generated Level Numbers to Scripts?
« Reply #2 on: April 08, 2021, 08:17:47 pm »
It was looking like that would be the case.  I can get to them through the standard report generating API via {LevelNumber}, but that has the feel of a special add-in, as there seems to be no way to get there when using the CSV export for example.

Off to do my own counter, thanks.