Book a Demo

Author Topic: How to customize embedded elements  (Read 3501 times)

Mike Zhang

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How to customize embedded elements
« on: May 19, 2015, 08:05:56 am »
Hi there,

For one of MDG stereotypes I have created, I would like to add a new embedded element, similar to "Port" but with different shape. Can anybody please tell how to do that?

Many thanks,
Mike

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to customize embedded elements
« Reply #1 on: May 19, 2015, 06:51:39 pm »
You need to assign it a shape script. In your MDG add an _image attribute and assign it with the ellipsis button near the initial value (search the help for "_image").

q.

Mike Zhang

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How to customize embedded elements
« Reply #2 on: May 20, 2015, 10:24:11 am »
Thanks for the response.

I have done the shape script for my new embedded element. But, how do I make it to available for a parent element? For example, I can define a new embedded element stereotype X based on "Port" and a new stereotype Y based on "Component", how do I make X to be embedded element of Y?

Regards,
Mike  

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to customize embedded elements
« Reply #3 on: May 20, 2015, 07:36:25 pm »
You can drop it from the browser and you will be asked whether it shall be part or port. Alternatively open the context menu/Structural Elements and select/create them.

q.