Book a Demo

Author Topic: MDG Integration  / different models and diagrams  (Read 3446 times)

laanbroek

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • Flatoodles
    • View Profile
MDG Integration  / different models and diagrams
« on: June 13, 2007, 05:53:36 am »
Hi,

I am pretty new to UML and Enterprise Architect... so let's hope these are not ridiculous questions.

I have an open Visual Studio 2005 solution.
I open EA, create a new project, and choose for example Use Case Model, Data Model and Class Model.
I right click Class Model, choose Add-In, Connect External Project, Visual Studio.
I choose the project within the solution I want to use, and click Connect.
In the Merge Project dialog I leave Reverse, and under Import I select all my C# classes.
Now under a folder named after the namespace I indeed find all my classes.
I right click on that folder and choose New Diagam.
In the New Diagram Dialog I choose UML Structural and Class.
I select all my classes, drag them onto the diagram, and choose Paste Element as Simple Link for all.
In the main menu I choose Layout Diagram, and after that Save.
So... now I have a nice diagram.

Next I wanna try something similar for the Use Case Model.

Now it turns out that I can't connect it to my Visual Studio project as long as the Class Model is connected.

Question 1: Why is this? Why can I only connect one model type at a time?

So... I right click the Class Model and choose Add-In, Disconnect from Visual Studio.

So far so good, my classes and diagram are still there.

Now I connect the Use Case Model to my VS project.
And I select some classes from it.

Now it turns out that every class I added to the Use Case Model, disappears from the Class Model, and from the diagram. Without any warning.

Question 2: Why is this? Why can my classes only be in one model at a time?


Thanks
Ruud
« Last Edit: June 18, 2007, 10:50:30 pm by laanbroek »

laanbroek

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • Flatoodles
    • View Profile
Re: MDG Integration  / different models and diagra
« Reply #1 on: June 18, 2007, 10:55:22 pm »
Can somebody help here?
Is there a problem with the MDG Integration? Or am I understanding things wrongly?

Thanks
Ruud

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG Integration  / different models and diagra
« Reply #2 on: June 19, 2007, 02:24:53 am »
Quote
Can somebody help here?
Is there a problem with the MDG Integration? Or am I understanding things wrongly?

Thanks
Ruud
Yes, Ruud.  To a significant extent you ARE understanding things wrongly!

However, to another extent, I feel the basic design of the "integration" is BAD - "broken as designed".

If you search, you (should) find some commentary by me on the inability to handle multiple VS Solutions with overlapping componentry.

If you find my postings they MAY explain why you are experiencing the problems you are.

One thing you should get clear is that EA (correctly) sees a class file with the same in the same directory in different parts of the model as the same class. It thus will move things around as you see.

HTH,
Paolo
(Sorry I couldn't be more positive)
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: MDG Integration  / different models and diagra
« Reply #3 on: June 22, 2007, 10:38:45 pm »
Hi Paolo... is this true of the new Beta (EA7 and MDG VS)?


I'm not a registered user so have gotta wait for public beta (or another client)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG Integration  / different models and diagra
« Reply #4 on: June 23, 2007, 01:54:49 am »
Quote
Hi Paolo... is this true of the new Beta (EA7 and MDG VS)?


I'm not a registered user so have gotta wait for public beta (or another client)
Hi Kevin,

Not sure...  I finally found a partial work-around that worked for me and (as with all this sort of stuff in EA's unique interface) haven't dared deviate from it.  I'm now involved in other areas and that particular model set is in "hibernation".  But it may wake up soon...

Sorry I can't be more help...

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