|
|
Re: Import of UML model exported by Enterprise Architect [message #1819326 is a reply to message #1819301] |
Mon, 13 January 2020 09:22 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Jan,
AFAIK, there is no such import tool in the open source area. However, if the models are exported from EA targeting XML 2.1 (Rather than 1.x), then the resulting models is usually close to being fully compatible with Eclipse/UML (You'll probably get a few errors due to the different versions of UML used in EA vs Eclipse/UML2 & Papyrus)
> I order to import the model, I tried to rename the extension of this file to .uml and import it in Papyrus
After exporting the EA Model to XMI 2.x, you shouldn't have to rename the file (Actually, renaming the file will probably make it worse). You could then try to save it to *.uml to get a format compatible with Papyrus (i.e. Eclipse/UML2 format, rather than OMG/XMI). I'm not sure if that would work out of the box, but it's worth trying.
In general, this type of conversion can give acceptable results with minimal tweaks, but to get a usable & stable import, some steps need to be automated (e.g. to handle or remove EA-specific extensions, such as Diagrams & Profiles/Libraries, adjust the model to get an XMI serialization that is compatible with UML 2.5...)
HTH,
Camille
Camille Letavernier
|
|
|
Re: Import of UML model exported by Enterprise Architect [message #1819342 is a reply to message #1819326] |
Mon, 13 January 2020 14:16 |
|
Hi Jan,
We are working on an internal tool for importing SparxEA-repositories into Papyrus. Our strategy is to read the SparxEA-repository using Sparx public API and create an identical model in Papyrus using Papyrus/UML2-API
The tool is far from finished but it can currently import most of the kind of elements, relationships and diagrams you have in your model.
We still have to add support for importing element properties, stereotypes (including creating profiles) and adjusting element sizes and relationship bendpoints in diagrams
I have attached a zipped Eclipse project that contains your model as a Papyrus-model and a css-file applied on the project to fix the overall diagram layout.
If you find this useful for your case please let me know.
Thomas
Thomas Wiman
MetaModelAgent Product Manager
|
|
|
|
|
Re: Import of UML model exported by Enterprise Architect [message #1819486 is a reply to message #1819463] |
Thu, 16 January 2020 08:00 |
|
One of the reasons for us to turn into the strategy of accessing the Sparx API instead of adjusting and using the Sparx XMI-files is that Sparx is more liberate when it comes to UML and makes it possible to create model constructions (structures, elements, tagged values and other things) that cannot be mapped 1:1 to the UML standard, as supported by Papyrus/UML2.
Another reason is that diagram representation is not standardized and need programmatic interpretation/conversion anyway.
I find it impossible to develop a ready-to-use import tool that suites all cases. The strategy now is to develop a kind of framework for reading Sparx-model constructions and writing Papyrus ditto with a default, probably incomplete, mapping in between. The mapping will then have to be programmatically adjusted/extended for each case.
I have not yet tried the other way around, due to lack of business case (yet). However I have done some proof-of-concepts on customer behalf to import Aris AML-files into Sparx EA, but that is a completely different story...
/Thomas
Thomas Wiman
MetaModelAgent Product Manager
|
|
|
Powered by
FUDForum. Page generated in 0.03673 seconds