Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Need a litlle help - importing XMI into Papyrus
Need a litlle help - importing XMI into Papyrus [message #1827712] Thu, 21 May 2020 14:41 Go to next message
Ri Fr is currently offline Ri FrFriend
Messages: 134
Registered: July 2015
Senior Member
Hello all, I need to import some model (packages, use cases, classes, components) from Sparx Enterprise Architect to Papyrus 4.7.

Normally I would export xmi for Sparx (excluding all diagrams), change the file type to *.uml, drag onto a Papyrus project explorer folder, then right click on it and "new Papyrus model" and I should be able to reuse all elements and recreate my diagrams manually. Except now it does not work! The new model wizard gets stuck at "Finish" (there must be some crash/exception somewhere). Maybe it's 4.7 or I'm doing something wrong.

I tried exporting different versions of xmi from Sparx, and also manually editing the xmi to change the uml UIR to Papyrus type. Here are some of the files I tried to import - all failed! Does anyone have any advice?

<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmi:version="2.1" xmlns:uml="http://www.omg.org/spec/UML/20090901" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:thecustomprofile="http://www.sparxsystems.com/profiles/thecustomprofile/1.0"><xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/><uml:Model xmi:type="uml:Model" name="EA_Model"><packagedElement xmi:type="uml:Package" xmi:id="EAPK_85FC466A_60F7_41a6_82E4_6894431106C7" name="2. CONCEPT"><packagedElement xmi:type="uml:Package" 


<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmi:version="20131001" xmlns:uml="http://www.omg.org/spec/UML/20090901" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:thecustomprofile="http://www.sparxsystems.com/profiles/thecustomprofile/1.0"><xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/><uml:Model xmi:type="uml:Model" name="EA_Model"><packagedElement xmi:type="uml:Package" xmi:id="EAPK_85FC466A_60F7_41a6_82E4_6894431106C7" name="2. 


<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmi:version="2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:thecustomprofile="http://www.sparxsystems.com/profiles/thecustomprofile/1.0"><xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/><uml:Model xmi:type="uml:Model" name="EA_Model" visibility="public"><packagedElement xmi:type="uml:Package" xmi:id="EAPK_85FC466A_60F7_41a6_82E4_6894431106C7" name="2. CONCEPT" 


[<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmi:version="20131001" xmlns:uml="[url]http://www.omg.org/spec/UML/20090901[/url]" xmlns:xmi="[url]http://www.omg.org/spec/XMI/20131001[/url]" xmlns:thecustomprofile="[url]http://www.sparxsystems.com/profiles/thecustomprofile/1.0[/url]"><xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/><uml:Model xmi:type="uml:Model" name="EA_Model"><packagedElement xmi:type="uml:Package" xmi:id="EAPK_85FC466A_60F7_41a6_82E4_6894431106C7" name="2. CONCEPT"><packagedElement xmi:type="uml:Package" 


Thanks for any advice

[Updated on: Thu, 21 May 2020 14:42]

Report message to a moderator

Re: Need a litlle help - importing XMI into Papyrus [message #1827714 is a reply to message #1827712] Thu, 21 May 2020 15:32 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

None of them look like files that I can save to my workspace and try. Not a good start.

You will see a very recent thread on the UML newsgroup concerning imports and many historic threads concerning EA.

If you think you know how to edit XMI files you should either debug them yourself or provide the unadulterated files for others to look at and perhaps identify a new problem and solution. Some of what you present seems to have HTML markup "[/url]" within xmlns are almost guaranteed to fail. Others have a weird UML. Nothing resembles UML 2.5. But who knows what you actually had before you improved it?

Regards

Ed Willink
Previous Topic:Is there a way to have connectors point to center of element in diagrams?
Next Topic:Is relationship matrix broken in version 4.15?
Goto Forum:
  


Current Time: Thu Apr 25 22:24:27 GMT 2024

Powered by FUDForum. Page generated in 0.03181 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top