Book a Demo

Author Topic: MDG, correct way to have more than one diagram.  (Read 5392 times)

IanG

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
MDG, correct way to have more than one diagram.
« on: December 10, 2015, 10:52:07 pm »
Hello,

I'm trying to create a set of custom diagram profiles each with their own toolbox. I'm starting from the ecoSystem example with the MDG Profile helper and that deploys fine.
However, when I deploy an MDG file with more than one diagram with their own toolboxes I run into trouble.
When I create an instance of my custom diagram one of two things happen. i) Every tool box shows up for each diagram. ii) the correct toolbox shows up for one diagram, but not the second.

When creating the MDG: Should I create a separate profile for and every toolbox and diagram or should I be looking to create separate class diagrams under each profile. Maybe I can create lots of stereotypes on one diagram. I've been trying everything but nothing works.

Any tips would be greatly received.

Kind Regards.

Ian



Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: MDG, correct way to have more than one diagram
« Reply #1 on: December 10, 2015, 11:19:02 pm »
I think you should create a separate profile for each toolbox, not for each diagram.
On the diagram stereotype you can define which toolbox profile should be used for this diagram type.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG, correct way to have more than one diagram
« Reply #2 on: December 11, 2015, 12:49:33 am »
You need to create single stereotypes that extend Diagram_<type> metaclasses (you need to name them manually) where <type> is the base diagram type like "Logical", "Use Case" etc. The metaclasses hold the toolbox property that defines which toolbox is active.

You might also have a look into my MDG book (follow the link below).

q.

IanG

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: MDG, correct way to have more than one diagram
« Reply #3 on: December 11, 2015, 01:10:59 am »
Hi,

Thanks for the quick responses! I did already create separate profiles for each toolbox and it didn't work. Out of desperation I upgraded my version of EA to 12.1 from 12.0 and magically it worked! Might have been a bug..?

Geert, I just want to say thanks for your presentation at the EA user group meeting in Munich at Airbus last year. You showed us how to make an EA addin in ten minutes. I found that very useful!!

Many thanks,
Ian


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: MDG, correct way to have more than one diagram
« Reply #4 on: December 11, 2015, 01:16:37 am »
Quote
Geert, I just want to say thanks for your presentation at the EA user group meeting in Munich at Airbus last year. You showed us how to make an EA addin in ten minutes. I found that very useful!!

Many thanks,
Ian

You're welcome. I'm happy you liked it. :)

Geert