Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: GpePerez on September 21, 2010, 02:33:13 am

Title: Import from XMI
Post by: GpePerez 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...

 :(
Title: Re: Import from XMI
Post by: Paul Lotz 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?
Title: Re: Import from XMI
Post by: beginner on September 21, 2010, 05:52:34 am
What is export diagram at all? I just know export package to XMI.

b.
Title: Re: Import from XMI
Post by: GpePerez 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.
Title: Re: Import from XMI
Post by: GpePerez 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.
Title: Re: Import from XMI
Post by: Geert Bellekens 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
Title: Re: Import from XMI
Post by: Rose 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? :-?
Title: Re: Import from XMI
Post by: Geert Bellekens on January 28, 2011, 01:57:01 am
Additional packages.

Geert
Title: Re: Import from XMI
Post by: Rose 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.
Title: Re: Import from XMI
Post by: Geert Bellekens 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