Book a Demo

Author Topic: Elements in an MDG with Attributes  (Read 6641 times)

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Elements in an MDG with Attributes
« on: August 21, 2013, 12:08:45 am »
Hi

I have in some of the MDG's provided with EA notices that you attributes already added to an element in you toolbox, so that when you add, e.g. a Class to your diagram, it comes with a set of Attributes already added to it.

Does any of you clever heads out there know how to do that?

Henrik

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Elements in an MDG with Attributes
« Reply #1 on: August 21, 2013, 01:16:22 am »
Well, that's the basic concept for profiles. You create stereotypes which extend meta-classes. The stereotypes have attributes. When you create such an element the attributes from the stereotype become tagged values and the element is that from the meta-class.

Read here: http://community.sparxsystems.com/tutorials/552-24intro-to-creating-a-mdg-file

q.

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Elements in an MDG with Attributes
« Reply #2 on: August 21, 2013, 01:26:54 am »
Thank you for replying so quickly.

I think we are talking about 2 different things here. You are correct, that when you develop your MDG, you have the attributes you mention. What I am looking for is a way to have the elements you define in your MDG have Attributes added to them already when deployed and used in a project.

A bad example could be a Stereotype called "Customer" that extends the Class Metaclass. When you then add an instance of the Customer stereotype in a project using the MDG it is contained in, it should be added with Attributes such as "Name and "Address".

Perhaps what I look for is already covered when using Patterns?

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Elements in an MDG with Attributes
« Reply #3 on: August 21, 2013, 01:29:56 am »
By the way, I have written a tutorial on how to develop MDG's myself. You can find it here:
http://trimm.tigerteam.dk/how-to-develop-mdgs-for-enterprise-architect-part-1/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Elements in an MDG with Attributes
« Reply #4 on: August 21, 2013, 03:37:56 am »
*grin* Obviously diametric opposite things. I know your article but did not realize that it was you. So - I have no answer but would like to hear it from someone else. My only explanation would be some kind of add-in wizardry.

q.

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Elements in an MDG with Attributes
« Reply #5 on: August 21, 2013, 03:41:42 am »
 ;) Yep, it is me. Hope my tutorials are helpful and I promise to add to it once I know how to solve this problem.

Thank you for your help.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Elements in an MDG with Attributes
« Reply #6 on: August 21, 2013, 08:52:54 am »
I think you may be wanting to define a pattern (and include the pattern on a toolbox) I believe the help has the necessary information.

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Elements in an MDG with Attributes
« Reply #7 on: August 22, 2013, 03:16:52 am »
Think that its the say to go, Simon. Thank you for your reply.

Henrik