Book a Demo

Author Topic: Sequence diagram numbering and api  (Read 5595 times)

bheggsum

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Sequence diagram numbering and api
« on: November 04, 2016, 02:13:18 am »
Hi

There is an option to turn on numbering on sequence diagrams (tools->diagrams->sequence->"Show sequence numbering"). This leads to an hierarchical numbering being displayed in all sequence diagrams. The question is, how to access these numbers via the API?

The connector element provides the sequence numbering by the SeqNo attribute, but this is not the same hierarchical numbering displayed in the diagram. I cannot for the life of me find where in the EA data tables or element structure this numbering information is stored. But it must be in there for EA to be able to render it in the diagrams!

For communication diagrams the hierarchical numbering is stored in the MiscData[3] attributes (same as PDATA4), but this is empty for sequence connectors. Any ideas on this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Sequence diagram numbering and api
« Reply #1 on: November 04, 2016, 04:13:05 am »
It's quite possible that this numbering is not stored at all, but calculated as the diagram is rendered.

Geert

bheggsum

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Sequence diagram numbering and api
« Reply #2 on: November 04, 2016, 09:20:50 pm »
Yes, I've starting to come to the same conclusion myself. Via the API one could traverse the links in the sequence diagram (following the order of the SeqNo attribute), and registering any New Message Group indications along the way. Then the same numbering as in the diagram could be produced.