Implementing MSM diagram from Capella with M2Doc

Hi all !
I’m new to M2Doc, working my way through and learning so much.
I’m having an issue when implementing a MSM diagram to my document, because MSM diagrams are stored in a system file of Capella that contains Constraints too, I can’t seem to find a way to reach my diagram without encountering those constraints …
I run on Capella 1.3.2.

My code (i’ve already downloaded nsUrls to make everything work, as the oclIsKindOf, …) and the errors can be found bellow. I don’t understand why the for loop enters the Constraints elements whereas I’ve created a condition that should prevent that.

If anyone could help me in this matter, it would be greatly appreciated.

Thanks in advance for your time and help!
Have a nice day !

constraints MSM MSM error


I hope the following code will help.

Kind Regards


1 Like

Hi !
It works beautifully, thank you so much ! I looked for something too complex apparently haha.

Thanks again for your help!
Kind regards

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