Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » M2Doc » OEBD Diagram Generation(How to navigate to OEBD diagrams)
OEBD Diagram Generation [message #1828572] Fri, 12 June 2020 16:32 Go to next message
Maria DAgostino is currently offline Maria DAgostinoFriend
Messages: 2
Registered: June 2020
Junior Member
Hi,
I am trying to generate a document that uses OEBD diagrams but I have not found a way to navigate to the diagrams. I know that the OEBD diagrams are a viewpoint::DView but I can't seem to find the right code that will produce the diagrams.

Thank you,
Maria
Re: OEBD Diagram Generation [message #1828578 is a reply to message #1828572] Fri, 12 June 2020 18:07 Go to previous messageGo to next message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 215
Registered: July 2009
Senior Member
Hi Maria,
I hope you are doing well.
I think these two thread should help you, let me know if not.
https://polarsys.org/forums/index.php/t/569/
https://polarsys.org/forums/index.php/t/499/
Stephane


Stephane LACRAMPE
Obeo Canada
Re: OEBD Diagram Generation [message #1828580 is a reply to message #1828578] Fri, 12 June 2020 22:06 Go to previous message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 215
Registered: July 2009
Senior Member
To make it work, first, you have to add these additional nsURI packages to your m2Doc template. To do so, right click on your m2doc template (under Capella) and select "Edit Template properties" amd then go to the nsURI(expert) tab, click on "add" and search for *sirius.
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
http://www.eclipse.org/sirius/table/1.1.0
http://www.eclipse.org/sirius/tree/1.0.0

Then you can try one of these two examples, the first one will display the diagram name as well.

{m:for package |self.containedOperationalAnalysis.ownedOperationalContext}
{m:for rep | package.representationByDescriptionName('Operational Entity Breakdown')}
{m:rep.asImage().fit(500,400)}
{m:rep.name}
{m:endfor}
{m:endfor}

{m:for package |self.containedOperationalAnalysis.ownedOperationalContext}
{m:for im | package. asImageByRepresentationDescriptionName('Operational Entity Breakdown')}
{m:im.fit(500,400)}
{m:endfor}
{m:endfor}

If you want to also get the OABs, you have to replace the DescriptionName string by 'Operational Entity Blank'

I hope this helps.


Stephane LACRAMPE
Obeo Canada
Previous Topic:Is Capella cleared for D0-178C and certification of architectures?
Next Topic:Remove HTML balises from generated document
Goto Forum:
  


Current Time: Tue Dec 06 08:49:42 GMT 2022

Powered by FUDForum. Page generated in 0.02088 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top