Author Topic: XMI import - Diagrams lost  (Read 2684 times)

dinsn

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
XMI import - Diagrams lost
« on: August 23, 2011, 06:05:13 pm »
Hello,

I'm new to this forum, so first hi everybody :). I hope you can help me with my problem.

The task I have is to somehow import an old Rational Rose .mdl file into Enterprise Architect. Because we cannot use Rational Rose anymore I decided to convert the .mdl file to an .xmi or .uml2 file first because they can be imported with Enterprise Architect. For the first conversion from .mdl I used the Eclipse SDE plug-in from Visual Paradigm. There I can choose to export as .xmi version 1.2, 2.1 or 2.1 for UML2 (with .uml2 ending).
The export seems to be fine, but I have some problems when I want to import the files again to EA.

From the .xmi version 1.2 file the diagrams are nicely imported, but some weird empty elements are also generated and there is some confusion with the data types. The .xmi 2.1 version does not generate that much garbage when importing, but all the diagrams are lost (there is no diagram in any list if I try "Find in all Diagrams..." for several classes. With the 1.2 import there were.). Everything seems to work out nicely when importing the UML2 file. Everything - but the diagrams. They are lost again. But when I was looking through the file I was trying to import I can see that the diagram information is in it and it looks quite the same as in the 1.2 version, so that's what's confusing me.

What could be the reason for that and is there any way to get the import going for the diagrams too?

Thanks for any help, I really appreciate it!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13402
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: XMI import - Diagrams lost
« Reply #1 on: August 23, 2011, 06:15:17 pm »
Hi,

Migrating diagrams is indeed a classical problem, mainly because XMI was never designed to store diagram information, and therefore all diagram information is stored in a vendor specific way.

A few years ago I was tasked with migrating a Rational Rose model to EA as well.
Back then I got the unisys xmi plugin for Rational Rose from IBM (Rational) support. With this plugin I managed to create XMI file that would more or less migrate the whole model, including diagrams.

I remember that I had to tweak things left and right, but in the end it was reasonably ok.

Geert