Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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.
- «profile»
- «diagram profile»
- «toolbox 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
-
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.
-
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
-
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.
-
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
-
Repository.SaveDiagramAsUMLProfile or Repository.SavePackageAsUMLProfile