M2DOC "Physical Architecture Blank"

Hi all,
I have another question about generation with “Physical Architecture Blank” diagram.
How can I fill my document with the diagram and description of all components present in this diagram ?
I found examples with others types of diagrams but not for “Physical Architecture Blank” diagram.
Someone can help me ?

Hi,
Capella representations are based on Sirius. To handle it you need to use associated services. See
http://www.m2doc.org/ref-doc/nightly/m2doc_service_m2docsiri usservices.html
Service "
EObject.asImageByRepresentationDescriptionName(String) : Sequence{org.obeonetwork.m2doc.element.MImage}" could be used. It returns for an object the sequence of diagrams matching name in parameter.
For instance:
self.asImageByRepresentationDescriptionName(‘System Architecture Blank’) return all System Architecture Blank of ‘self’.
Samuel

Thanks Samuel,
I put this in my template :
{m:for im | self.asImageByRepresentationDescriptionName(‘Physical Architecture Blank’)}
{m:im.fit(300,200)}
{m:endfor}
but it return nothing.

Well, syntax seems correct (assuming
self is a Physical Component)

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.