Book a Demo

Author Topic: Accessing the messages of a seq. diagram  (Read 3147 times)

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Accessing the messages of a seq. diagram
« on: June 25, 2007, 07:24:44 am »
Hi

How can I access the messages exchanged on a sequence diagram?

I tried MyDiagram.DiagramLinks, but I does not include the messages.

Thanks for your help!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Accessing the messages of a seq. diagram
« Reply #1 on: June 25, 2007, 11:40:41 pm »
OK, I found out thanks to:

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=Automation;action=display;num=1096885588;start=1#1

Code: [Select]

Foreach Package p
Foreach Diagram d in p.Diagrams
 For each Object o in d.DiagramObjects
  For each Connector c in o.Connector
   c is a message !
   Check MyConnector.TaggedValues for a tag "operation_guid" if you want to find out the corresponding methods if any