Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: QuarksUndCo on May 29, 2012, 08:50:25 am

Title: navigation from Element Type InteractionOccurreces
Post by: QuarksUndCo on May 29, 2012, 08:50:25 am
hi group,
how can i navigate from a reference frame defined in an use case diagram to the interaction diagram. The reference frame is of type "InteractionOccurences" and the interaction diagram is of type "sequence".

thanks all
Wolfgang
Title: Re: navigation from Element Type InteractionOccurr
Post by: Geert Bellekens on May 30, 2012, 05:48:09 pm
Wolfgang,

There must be a reference to the diagram ID somewhere in the elements's attributes.
The easiest approach is to go via the database: Open t_object, look for the element you are working on and check all columns for something that could be a diagram ID

Geert
Title: Re: navigation from Element Type InteractionOccurr
Post by: QuarksUndCo on May 31, 2012, 05:41:05 am
Geert, thanks for your hint. In the meantime I got an answer from the support team. For all who are interested in, here is the solution:
EA.Diagram diagram;
diagram = oRepository.GetDiagramByID(int.Parse(oUsecaseRef.get_MiscData(0)));

Thanks to all
wolfgang