Hi,
I am a newbie using Capella & M2DOC to generate of Doc export using templates and all the stuff.
Thanks to the mass of examples I was able to do my first steps with the tool,
but I am facing several problems that I am not able to solve after several (lot’s) hours of work.
I want to export in the Word file several Pictures from the Logical Architecture
Inspire by examples given on this topic I started like that :
{ m:for k | self.eAllContents()}
{ m:for rep | k.representationByDescriptionName(‘Logical Data Flow Blank’)}
{ m:if rep.name.lastlndex(’[Overview]’)> O}
{ m:rep.name }
{ m:rep.aslmage().fit(500,400)}
{ m:rep.name }
{ m:endif }
{ m:endfor }
{m:endfor }
it works … allmost … I select only file containing [Overview] in the title
but
- I have a strange warning …
{ m:for rep | k.representationByDescriptionName(‘Logical Data Flow Blank’) <–EClassifier=ElementExtension is not registered in the current environment}
I hardly understand it
-
I whould like to select on a more suitable element like aql:self.visibleInDoc
-
I would like to add the picture description text but I was not able to have the k.description working : Invalid query statement: Feature description not found in EClass DRepresentation
I cannot find the methodes and properties associate to this EClass DRepresentation !!! How can I find it
Thank in advance and sorry for these clumsy first step in the tool …
Pierre