Book a Demo

Author Topic: Creating a reference to a stereotype in another MDG  (Read 3862 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Creating a reference to a stereotype in another MDG
« on: May 25, 2021, 01:29:46 pm »
Hi all

Hopefully a simple question this time.
If I want to refer to a Stereotype in another MDG (either in the toolbox or as a base class), do I refer to it via the model Id, modelname or the uml profile name inside the MDG?

Cheers

Jays

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Creating a reference to a stereotype in another MDG
« Reply #1 on: May 25, 2021, 02:23:27 pm »
Hi all

Hopefully a simple question this time.
If I want to refer to a Stereotype in another MDG (either in the toolbox or as a base class), do I refer to it via the model Id, modelname or the uml profile name inside the MDG?

Cheers

Jays
Hi Jays,

If you look at Eve's responses to some of my recent posts, it's <Profile>::<Stereotype>
Often, the MDG and Profile names are the same, but it's actually the Profile name that is required.

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

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Creating a reference to a stereotype in another MDG
« Reply #2 on: May 26, 2021, 05:42:11 am »
Thanks again Paolo!

Hmmm, so what happens if you have two models with the same profile name?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Creating a reference to a stereotype in another MDG
« Reply #3 on: May 26, 2021, 07:59:02 am »
EA will only load one of them.

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Creating a reference to a stereotype in another MDG
« Reply #4 on: May 26, 2021, 08:16:26 am »
Thanks Eve! :-)