Book a Demo

Author Topic: Set associated diagram of stereotype  (Read 2606 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Set associated diagram of stereotype
« on: May 15, 2013, 12:58:16 am »
Good afternoon,

my setting is as follows:
I have two stereotypes of metaclass Component, one of name "Component" and one of "ComponentInstance". Only ComponentInstance should be composite.

If I use the _makeComposite and _defaultDiagramType attributes in ComponentInstances metaclass, then at every creation a diagram is created.
My task is that I don't want to create a new diagram everytime but just set the associated diagram of the created ComponentInstance to an already existing one.

Thanks in advance!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Set associated diagram of stereotype
« Reply #1 on: May 15, 2013, 02:01:46 am »
I'd say you would need to write an add-in that catches the EA_OnPreNewElement event and act accordingly.

q.