Book a Demo

Author Topic: Generate Archimate Model Exchange file via scripting  (Read 4240 times)

bondgen

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Generate Archimate Model Exchange file via scripting
« on: February 15, 2021, 05:23:25 pm »
Dear support,
here https://sparxsystems.com/enterprise_architect_user_guide/14.0/model_domains/genarchmeff.html described how to generate Archimate Model Exchange file.
How to achieve the same via scripting, when I know package (GUID) where I want to perform such export?
This action available both from menu bar and as a menu item on right click on the package.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate Archimate Model Exchange file via scripting
« Reply #1 on: February 15, 2021, 09:37:51 pm »
See the help ExportPackageXMI (string PackageGUID, enumXMIType XMIType, long DiagramXML, long DiagramImage, long FormatXML, long UseDTD, string FileName)

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generate Archimate Model Exchange file via scripting
« Reply #2 on: February 16, 2021, 05:48:54 am »
See the help ExportPackageXMI (string PackageGUID, enumXMIType XMIType, long DiagramXML, long DiagramImage, long FormatXML, long UseDTD, string FileName)

q.

I'm afraid Archimate Exchange format is different and not available through the API.
But hopefully I'm wrong.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate Archimate Model Exchange file via scripting
« Reply #3 on: February 16, 2021, 06:11:44 am »
You're probably right. The XMIType does not list Achi. So, bondgen, write a feature request and be very patient. Alternatively, If you feel the urge, write your own exporter. That's possible but a lot of work. Blood, sweat and tears for free.

q.

bondgen

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Generate Archimate Model Exchange file via scripting
« Reply #4 on: February 16, 2021, 09:13:08 pm »
Hi all,
Thank you for your answers.
Not good news.
I've tried ExportPackageXMI with all possible XMIType parameters and didn't achieve desired result. This function still exports XMI.
I trying to build up a tool chain based on Archimate language. Sparx EA could become a central part of it, as a modelling tool that helps to convert model to machine-readable format. And Archimate Exchange File format is what i need.
Be not able to automate this export makes usage of Sparx EA questionable. Especially when you forced to do already done job by yourself.
It's really sad, that MDG implemented as a patch without ability to use it via scripting.

Best regards,
  Gennadiy