Book a Demo

Author Topic: Getting the message sequence labels in a Communication diagram via the API  (Read 6730 times)

larswilhelmsen

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Hi,

 I'm exploring the EA API and are currently struggling with finding the message sequence label (1, 1.1, 1.2, 1.3, 2, 2.1 etc.).

 

 I'm fetching the DiagramLinks from the current Communication diagram, and retrieve the corresponding Connectors, but
 the only thing I can find that are related is the SequenceNo property on the Connector instance (which is just and integer sequence 0,1,2,3...).

 Any pointers/hint?

 --larsw
« Last Edit: April 21, 2016, 04:52:20 am by larswilhelmsen »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
As far as I can see, those are stored in MiscData(5) / t.connector.PDATA4 for the Collaboration connectors (there are two per message, the other being an Association).

q.

larswilhelmsen

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Ok, can I assume that I have to create a custom SQL-based query to fetch those values?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
You can access MiscData through the API.

q.

larswilhelmsen

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Found it - cheers!

LOL at this text from the EA documentation:

Quote
This low-level property returns an array providing information about the contents of the PDatax fields; these database fields are not documented and developers must gain understanding of these fields through their own endeavors to use this property.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Yeah. That's EA live. Good luck in using it. Your friendly developer 8)

q.