Author Topic: Identifying UML diagrams and elements  (Read 864 times)

bkone

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Is this real?
    • View Profile
Identifying UML diagrams and elements
« on: October 22, 2020, 10:46:39 pm »
Hello all,

I have difficulties to identify if a diagram or element is from UML.
With BPMN or ArchiMate I can use the element.FQStereoType or diagram.StyleEx (looking for MDGDgm=xxx;).
But in case of UML all those attributes are empty.

Any idea on how I can identify those UML diagrams and elements?


Best regards

Boris

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11299
  • Karma: +421/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Identifying UML diagrams and elements
« Reply #1 on: October 22, 2020, 11:08:49 pm »
Look for EA.Element.Type or EA.Diagram.Type

(yes, sometimes it's that obvious ;D)

Geert

bkone

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Is this real?
    • View Profile
Re: Identifying UML diagrams and elements
« Reply #2 on: October 23, 2020, 08:57:07 pm »
Hello Geert,

I tried your approach, but the information I'm getting from those attributes are:
- UML Class diagram: EA.diagram.Type = Logical (shown in properties GUI: Class)
- UML Class: EA.element.Type = Class (that's equivalent to what is shown in the GUI under properties for attribute Type.)

EA.diagram.Type for ... (t_diagramtypes)
- UML Class: Logical
- BPMN: Analysis
- ArchiMate: Logical

Does anyone knows where the data is stored/hidden that EA uses to show in the properties for a diagram as Type the value Class?
Based on my research it can't be in EA.diagram.Type

Only for MDG-diagrams and elements you can have a clear detection what type of diagram/element a diagram/element is.
For diagram use EA.diagram.MetaType or EA.diagram.StyleEx with searching for MDGDgm=..;.
For elements use EA.element.FQStereotype.

For anything "standard", e.g. UML, this is not that easy/clear as most attributes are empty.
For diagram:
EA.diagram.MetaType = <empty>
EA.diagram.StyleEx has MDGDgm=; (empty)

For element:
EA.element.Type = Class
Rest is all empty


Any ideas?


Best regards

Boris

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11299
  • Karma: +421/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Identifying UML diagrams and elements
« Reply #3 on: October 23, 2020, 09:09:09 pm »
That is it, I'm not sure what more you think there is.

A regular UML class has an empty stereotype and element type "Class"
A standard UML class diagram has an empty metatype and type "Logical" (I guess the "Logical" is a not so logical translation of "Class")

Geert