Book a Demo

Author Topic: Custom Metamodel Diagram View  (Read 6979 times)

i4mdone

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Custom Metamodel Diagram View
« on: May 12, 2020, 03:59:11 am »
I'm testing out creating metamodel Diagram Views in the latest version (1528). Was successful in previous versions. When something doesn't work as expected, I sometimes go to the basics and just test that out again.  In the User Guide, there is a simple step to "Extending a UML Diagram Type" (row 3).  For something so basic I cannot get this to work now - anybody else having issues with v15.x regarding this?

https://www.sparxsystems.com.au/enterprise_architect_user_guide/15.1/modeling/custommetamodelview.html



Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Custom Metamodel Diagram View
« Reply #1 on: May 12, 2020, 09:09:40 am »
So, what have you done?

i4mdone

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Custom Metamodel Diagram View
« Reply #2 on: May 12, 2020, 10:07:08 am »
In the "Create Custom Diagram View in a Profile" section, performed rows 1-3 and then saved the profile and compiled the MDG as normal.  The very last sentence of row 3 is what I am looking for as a quick outcome to ensure things are working properly in the most simplistic form.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Custom Metamodel Diagram View
« Reply #3 on: May 12, 2020, 10:46:13 am »
In the "Create Custom Diagram View in a Profile" section, performed rows 1-3 and then saved the profile and compiled the MDG as normal.  The very last sentence of row 3 is what I am looking for as a quick outcome to ensure things are working properly in the most simplistic form.
[Pedantry alert]Simplistic doesn't NOT mean "very simple". It means too simple - to the point of not working. So it is not possible to have "things are working properly in the most simplistic form"[/Pedantry alert]

Even if you "know" what a word means, do check it out occasionally.  I've been surprised (from time to time) that a word I thought I knew I was using incorrectly.

In the interest of clarity...

Paolo

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

i4mdone

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Custom Metamodel Diagram View
« Reply #4 on: May 12, 2020, 10:34:11 pm »
Good point - simple definition here is a basic "hello world" following the Sparx guide.

i4mdone

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Custom Metamodel Diagram View
« Reply #5 on: May 14, 2020, 11:12:33 pm »
Update: to get the "basic hello world" scenario to work, I learned that the v15.1 help on this topic can't stop at row 3 and then jump to the end (create profile and add it to the MDG).  You have to at least add one "expose" object (rows 5-7)...anyways row 3 statement at the bottom is a bit misleading (however I get that it is just my interpretation of that statement in row 3).

Question: when I install the MDG for the diagram view in an EAPX repository, when I create a new diagram, the Diagram Types shows two (2) of the same diagram view.  I created a new EAPX to re-test on a clean and unencumbered repository and got the same double view results.  However when I install this same MDG in a database (SQLServer) repository, I get the results that I would expect which shows only 1 of the diagram view.  Has anybody experienced similar issues with Diagram Views?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Custom Metamodel Diagram View
« Reply #6 on: May 15, 2020, 07:58:34 am »
There are a few things from the metamodel being duplicated in the current build. I'm expecting that to be fixed in our next build.

PS. It sounds like simplistic was accurate then. ;)
« Last Edit: May 15, 2020, 02:57:29 pm by Eve »