Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ocroquette on June 25, 2007, 07:24:44 am

Title: Accessing the messages of a seq. diagram
Post by: ocroquette 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!
Title: Re: Accessing the messages of a seq. diagram
Post by: ocroquette 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