M2 doc Logical Architecture blank

Hi all,

I am trying to represent the “logical architecture blank” diagrams in a M2doc document, but I cannot get it to be displayed in the M2doc document.

I try using two different methods but none of them seems to work.

Method 1

m:for im | self.containedLogicalArchitectures.ownedLogicalComponentPkg.asImageByRepresentationDescriptionName(‘Logical Architecture Blank’)
m:im.fit(650,400)
m:endfor

Method 2
m:for f | self.eAllContents (la::LogicalFunction)
m:if f.isRepresentationDescriptionName(‘Logical Architecture Blank’)
m:f.asImageByRepresentationDescriptionName(‘Logical Architeture Blank’).setWidth(400)
m:endif
m:endfor

I didn´t receive any kind of warning in any of the methods but no diagram is represented.

Any advice of what I am doing wrong?

Thanks

Hi Eugenio,

If you have no errors it might mean your configuration is correct but just to be sure:

  • check that your .genconf file has a SiriusSession option set to the relative path to the .aird file of your Capella project
  • you can also add the following nsURI to your template:
    • http://www.eclipse.org/sirius/1.1.0
    • http://www.eclipse.org/sirius/diagram/1.1.0
    • http://www.eclipse.org/sirius/diagram/sequence/2.0.0

I also noticed you use special characters for quotes (‘’) you should use '. They are often replaced by MS Word while copy/pasting. You can also make sure you don’t have extra spaces inside of your AQL strings because MS Word sometime add some spaces.

Logical Architeture Blank are defined on LogicalComponent and LogicalComponentPkg not LogicalFunction:

self.eAllContents (la::LogicalComponent).asImageByRepresentationDescriptionName('Logical Architeture Blank').fit(500, 500)