Hi all,
I’m currently working on documentation generation on basis of a model relying on a library containing data types and exchange items
And I do not manage to find a way to get the diagrams associated to these data types/exchange items, defined in the library
I’ve created a property referencing the library through template properties
But I do not find an accessor to these diagrams
I tested with the representationByDescriptionName accessor, which works correctly with diagrams defined in the model, but no way to access the diagrams defined in the library
Any idea?
Thanks in advance
Hi Stephane,
Diagrams are stored in the *.aird file of the library project not the project importing the library. That’s why you can’t find your libraries diagrams.
As a workaround, you can generate a document per library and then either combine them into one document or create reference from the main document to the library document:
{m:'some external stuff from lib1'.asLink('lib1.docx#stuffID')}
and in the lib1 document you should create a bookmark:
{m:'stuff defininition'.asBookmark('stuffID')}
Hi Yvan,
Thanks for this swifft answer
I will give it a try
With regards
By the way if you need more help regarding M2Doc or Python for Capella, you can contact Obeo for commercial support. It can range from specific advice for your project to writing template of Python scripts.