Book a Demo

Author Topic: MDG - presetting Diagram properties  (Read 3050 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
MDG - presetting Diagram properties
« on: December 18, 2019, 07:23:05 pm »
We used to create Diagram types in a Template Package, however, we are moving to defining the diagram types in the MDG itself.

Do I understand correctly, that I can take the PDATA and StyleEx fields for an existing diagram and add them to the diagram specification in the MDG (as below)?

Code: [Select]
<Stereotype name="Metamodel" alias="Metamodel Diagram" notes="The MDG metamodel itself">
<AppliesTo>
<Apply type="Diagram_Logical">
<Property name="alias" value="Metamodel"/>
<Property name="diagramID" value="metamodel"/>
<Property name="toolbox" value="MDG Role Specific"/>
<Property name="pdata" value="<PDATA from t_diagram>"/>
<Property name="styleex" value="<StyleEx from t_diagram>"/>
</Apply>
</AppliesTo>
</Stereotype>

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG - presetting Diagram properties
« Reply #1 on: December 18, 2019, 08:06:05 pm »
Hmm. The StyleEx contains the MDGDgm= string. So I'd doubt that this would work. Not sure about PData. I'll make a test later.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG - presetting Diagram properties
« Reply #2 on: December 18, 2019, 08:50:17 pm »
That seems to work (on V13.5).  Probably the MDGDgm part will be replaced. I'd just not supply it in any case. I also just supplied one property from the CSV lists and they did appear as specified. Quite a nice thing to know :-)

q.