Book a Demo

Author Topic: Import from XMI  (Read 5070 times)

GpePerez

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Import from XMI
« on: September 21, 2010, 02:33:13 am »
Hi,

How can I export/Import a diagram with screen and classes?
I just tried to do it,but when I import the file i just got the screen
and the classes were missing...

 :(

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: Import from XMI
« Reply #1 on: September 21, 2010, 05:24:41 am »
1) What options did you set in the Export Package to XMI dialog?
2) Do the classes--along with the diagram--reside in the package you exported?

beginner

  • Guest
Re: Import from XMI
« Reply #2 on: September 21, 2010, 05:52:34 am »
What is export diagram at all? I just know export package to XMI.

b.

GpePerez

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Import from XMI
« Reply #3 on: September 21, 2010, 06:36:42 am »
Quote
1) What options did you set in the Export Package to XMI dialog?

Format XMI Output
Export Diagrams
export Alternate Images
Enable full EA Roundtrip
XMI type:XMI2.1

2) Do the classes--along with the diagram--reside in the package you exported?

Yes, they are in the same diagram.

GpePerez

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Import from XMI
« Reply #4 on: September 21, 2010, 06:38:27 am »
Quote
What is export diagram at all? I just know export package to XMI.

b.

Yes, you`re rigth.

I mean export package with a diagram that contains a screen and some clases.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import from XMI
« Reply #5 on: September 21, 2010, 03:08:47 pm »
Quote
Quote
1) What options did you set in the Export Package to XMI dialog?

Format XMI Output
Export Diagrams
export Alternate Images
Enable full EA Roundtrip
XMI type:XMI2.1

2) Do the classes--along with the diagram--reside in the package you exported?

Yes, they are in the same diagram.
GpePerez,

Please note that Paul has actually asked if they are in the same package, not the same diagram.
You have to understand that xmi importing/exporting works on packages only.
The fact that something is displayed on a diagram in your package doesn't mean it gets exported.
Only the elements (and diagrams) owned by your package (and recursively its subpackages) will be exported.

Geert

Rose

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Import from XMI
« Reply #6 on: January 28, 2011, 01:48:31 am »
I'm encountering a similar problem with exporting diagrams from DBMS and importing to an EAP file. After the import, some of the messages from the sequence diagrams are missing. Should I be exporting additional diagrams/classes? :-?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import from XMI
« Reply #7 on: January 28, 2011, 01:57:01 am »
Additional packages.

Geert

Rose

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Import from XMI
« Reply #8 on: January 28, 2011, 04:04:56 am »
Thanks for the immediate reply! How do I figure out what packages the messages from the sequence diagram are located under? When I performed the export, I thought I exported the entire packages.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import from XMI
« Reply #9 on: January 28, 2011, 06:20:11 pm »
Rose,

You'll need to look for all elements (and classifiers) used on your sequence diagrams.
Also make sure you include all superclasses of those classifiers as they might contain the operation definition.

In case you are exporting/importing different xmi files also make sure to import them in the correct order according to the package dependencies.
Sometimes it helps to import them twice.

Geert