Hello everyone!
I’m a new user of M2Doc and I’m having a bit of trouble achieving what I want with some “Logical Architecture Blank” diagrams.
My final goal is to display all the desired LAB diagrams in the generated document, along with their names. Once all the diagrams are shown, I would like to include a table summarizing all the functions present inside the displayed LABs.
It’s worth noting that I have organized my LAB diagrams within different LogicalComponentPkg.
Currently, I have the following code:
{m:for lcp | self.eAllContents(la::LogicalComponentPkg)->select(p |p.name = ‘LAB 1’ or p.name = ‘LAB 2’)}
{m:lcp.name}
{m:for img | lcp.asImageByRepresentationDescriptionName (‘Logical Architecture Blank’)}
{m:img.setWidth(400)}
{m:endfor}
{m:endfor}
it correctly displays all the diagrams I want (12 diagrams in total : 10 in the LAB 1 LogicalComponentPkg and 2 in the LAB 2 LogicalComponentPkg) with the name of the LogicalComponentPkg, but in its current form, I can’t figure out how to display the names of the diagrams.
If you have any suggestions on how to:
- Display the names of the LAB diagrams,
- Generate a summary table listing all the functions shown in these LABs,
I would be very grateful!
For your information, I’m working with Capella 7.0.0 and M2Doc 3.3.4.
Thanks in advance for your help!