Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Viking on February 16, 2017, 02:13:35 am

Title: mdgtype,meta class, base class
Post by: Viking on February 16, 2017, 02:13:35 am
Hello,
(1) does anybody know how to find out the mdgtype of a diagram (without db-query)?
(2) does anybody know how to find out the metaclass of a element (without db-query)t?
(3) could some point me to a description of base clase (see UML types. Not the base class for inheritance)?
Many thanks in advance, V.

Title: Re: mdgtype,meta class, base class
Post by: KP on February 17, 2017, 08:53:44 am
(1) does anybody know how to find out the mdgtype of a diagram (without db-query)?
Scripting. Try inspecting the EA.Diagram.MetaType value

Quote
(2) does anybody know how to find out the metaclass of a element (without db-query)t?
Scripting. Try inspecting the EA.Element.MetaType value

Quote
(3) could some point me to a description of base clase (see UML types. Not the base class for inheritance)?
Sorry, don't understand the question.
Title: Re: mdgtype,meta class, base class
Post by: Viking on February 17, 2017, 05:58:47 pm
(1) does anybody know how to find out the mdgtype of a diagram (without db-query)?
Scripting. Try inspecting the EA.Diagram.MetaType value
Quote
(2) does anybody know how to find out the metaclass of a element (without db-query)t?
Scripting. Try inspecting the EA.Element.MetaType value
Quote
(3) could some point me to a description of base clase (see UML types. Not the base class for inheritance)?
Sorry, don't understand the question.
Many thanks.

Wouldn't it be helpful showing these information ([1] and [2]) in the properties-sheet?

To [3]: with base-class I am talking about Project > Settings > UML types (the term base class in the document is also used for decribing inheritance. Or does base class for Sterotypes has something to doe with inheritance?).
Title: Re: mdgtype,meta class, base class
Post by: Paolo F Cantoni on February 17, 2017, 06:19:08 pm
Hi Viking,

If you are talking about the "base class" in the stereotype page of the UML types dialog, it is misnamed.  It should be captioned: "Metaclass to which to apply this stereotype".   You can define more than one stereotype with the same name and apply each to a different metaclass.  You may even note that you can apply it to "<All>", but not to "<Shapes>" or "<Lines>".

I don't believe it has anything (directly) to do with inheritance - since you can apply the "<All>" value.

HTH,
Paolo
Title: Re: mdgtype,meta class, base class
Post by: Viking on February 19, 2017, 10:53:40 pm
Hi Viking,

If you are talking about the "base class" in the stereotype page of the UML types dialog, it is misnamed.  It should be captioned: "Metaclass to which to apply this stereotype".   You can define more than one stereotype with the same name and apply each to a different metaclass.  You may even note that you can apply it to "<All>", but not to "<Shapes>" or "<Lines>".
I don't believe it has anything (directly) to do with inheritance - since you can apply the "<All>" value.
HTH,
Paolo

Hi Paolo, thank you very much.

For my opinion the manuals are to short for this domain.

V