Author Topic: Export UMLProfile like ExportPackageXMI()  (Read 3778 times)

A-Spicer

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I'm no novice at all
    • View Profile
Export UMLProfile like ExportPackageXMI()
« 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
« Last Edit: November 02, 2019, 02:32:45 am by A-Spicer »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Export UMLProfile like ExportPackageXMI()
« Reply #1 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.

A-Spicer

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I'm no novice at all
    • View Profile
Re: Export UMLProfile like ExportPackageXMI()
« Reply #2 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.

Or does someone have a more mature idea?

Best, Toc

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Export UMLProfile like ExportPackageXMI()
« Reply #3 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Export UMLProfile like ExportPackageXMI()
« Reply #4 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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Export UMLProfile like ExportPackageXMI()
« Reply #5 on: November 04, 2019, 08:51:52 am »
Repository.SaveDiagramAsUMLProfile or Repository.SavePackageAsUMLProfile
The Sparx Team
[email protected]