Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » M2Doc » M2Doc Diagram names
M2Doc Diagram names [message #1823352] Wed, 25 March 2020 11:10 Go to next message
Julien Morane is currently offline Julien MoraneFriend
Messages: 19
Registered: December 2019
Junior Member
Hello everyone,

While trying to generate a M2Doc report, it is sometimes impossible to display the diagrams names :

For instance, the command
{m:for im | self.containedOperationalAnalysis.eAllContents().asImageByRepresentationDescriptionName('Operational Activity Breakdown')}
{m:im.name}
{m:endfor}

will trigger an error : 'Couldn't find the 'aqlFeatureAccess(org.obeonetwork.m2doc.element.MImage,java.lang.String)' service'

Wheras the same command with a Logical Component Breakdown diagram works perfectly fine.


Any idea will be really appreciated :)
Re: M2Doc Diagram names [message #1823366 is a reply to message #1823352] Wed, 25 March 2020 15:23 Go to previous messageGo to next message
Yvan Lussaud is currently offline Yvan LussaudFriend
Messages: 63
Registered: July 2009
Member
You are trying to get the name of a MImage which has no name. Your need to get the representation itself:

{m:for representation | self.containedOperationalAnalysis.eAllContents().representationByDescriptionName('Operational Activity Breakdown')}
{m:representation.name}
Image:
{m:representation.asImage()}
{m:endfor}
Re: M2Doc Diagram names [message #1823605 is a reply to message #1823366] Mon, 30 March 2020 08:09 Go to previous message
Julien Morane is currently offline Julien MoraneFriend
Messages: 19
Registered: December 2019
Junior Member
Thank you Yvan, it worked fine.
Previous Topic:M2Doc technical error : Index 0, Size 0
Next Topic:M2Doc: Parameters of the physical architecture in AQL
Goto Forum:
  


Current Time: Thu Mar 28 21:51:19 GMT 2024

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

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

Back to the top