Hi,
I want to generate diagrams from a model, but I have found difficulties to extract the caption of the diagram. I am using this:
{ m:for comp | self.eAllContents() }
{ m:if comp.isRepresentationDescriptionName(‘Logical Architecture Blank’) }
{ m:for image.asImageByRepresentationDescriptionName('Logical Architecture Blank) }
{ m:image.setWidth(400) }
Caption : { m: comp.representationByDescriptionName('Logical Architecture Blank).name }
{ m:endfor }
{ m:endif }
{ m:endfor }
With this, I obtain the LAB diagrams and all the caption of all the diagrams every time. I assume representationByDescriptionName() gives a Sequence, but I don’t know hoy to access independently to every caption.
Thanks,
I.B.