Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: A-Spicer on November 02, 2019, 02:24:03 am

Title: Export UMLProfile like ExportPackageXMI()
Post by: A-Spicer on November 02, 2019, 02:24:03 am
Hi,

Each time we want to update our MDG technology we have manually to export three packages via Advanced > Save as Profile.   
We found ExportPackageXMIEx() to export the XMI format, but how to export the UMLProfile format?

I'm using EA13.5. My colleagues use EA 15.0.

Best, ToC
Title: Re: Export UMLProfile like ExportPackageXMI()
Post by: qwerty on November 02, 2019, 07:59:25 am
You can't. Maybe your feature request is the drop needed to overflow the barrel. I'd be happy to see that but already have abandoned any hope in Sparx developing useful things for EA.

q.
Title: Re: Export UMLProfile like ExportPackageXMI()
Post by: A-Spicer on November 02, 2019, 08:16:00 am
Perhaps the UMLProfile could be created by XSLT from the XMI. I haven't looked at this yet.

Is such an XSLT available somewhere? Maybe I should have a look at the XSLT from the article UML profile and packages (https://www.sparxsystems.com/forums/smf/index.php/topic,20264.msg182639.html#msg182639).

Or does someone have a more mature idea?

Best, Toc
Title: Re: Export UMLProfile like ExportPackageXMI()
Post by: qwerty on November 02, 2019, 09:45:57 am
It's probably possible, but I bet the effort is too high. Actually it's not that difficult to create a profile from a <<profile>> package and/or diagram via a script. But then again it's an unpredictable effort nobody will pay for. I just bite the dust and use that scrappy manual export which always forgets where to store the profile and which tends to replace the wrong export which again invalidates your MDG without meaningful trace (I partially prevent this using a script to create a MDG rather than that dumb MTS which drives you nuts with its dialog series).

q.
Title: Re: Export UMLProfile like ExportPackageXMI()
Post by: Geert Bellekens on November 02, 2019, 05:40:10 pm
Recently Sparx added support for exporting profiles and building MDG files automatically.

I haven't used it myself (yet) but I remember some posts about it on this forum.

Geert
Title: Re: Export UMLProfile like ExportPackageXMI()
Post by: KP on November 04, 2019, 08:51:52 am
Repository.SaveDiagramAsUMLProfile or Repository.SavePackageAsUMLProfile