Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » M2Doc » Access to Related Diagrams(From an Exchange Scenario, how to get access to its related diagrams to print them.)
Access to Related Diagrams [message #1818547] Thu, 19 December 2019 10:29 Go to next message
Mathias Cocheri is currently offline Mathias CocheriFriend
Messages: 21
Registered: December 2019
Junior Member
Hello,

In the coontext of generating docs with M2Doc, I'm trying to have access to diagrams related to an exchange Scenario.

Let's say you loop over a Sequence of "Scenario". How can we display related diagrams for each one of them ?

{ m:for scenario | capa.ownedScenarios->asSequence() }

{ m:for diagram | scenario.diagrams}

{ m:diagram.isRepresentationDescriptionName('Exchange Scenario')}

{ m:endfor}

Thanks in advance.

---------------------------------

Btw: Any tips on how to navigate easiliy in the Capella structures with M2Doc ?
So far, I'm using:
- Sirius interpreter (But all functions/properties are not listed while using ctrl+space)
- self.eClass(): to display the list of attributes I can use for an element of the model
Re: Access to Related Diagrams [message #1818595 is a reply to message #1818547] Fri, 20 December 2019 10:06 Go to previous message
Yvan Lussaud is currently offline Yvan LussaudFriend
Messages: 63
Registered: July 2009
Member
You can use:

senario.representationByDescriptionName('Exchange Scenario')

It returns a Sequence of DRepresentation.

PS: there was a typo in the documentation referencing an other service in the example. I fixed it.
Next Topic:Scenario diagrams
Goto Forum:
  


Current Time: Fri Apr 19 20:30:15 GMT 2024

Powered by FUDForum. Page generated in 0.03038 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top