Book a Demo

Author Topic: Example code for ExportPackageXMI in C#  (Read 3872 times)

IanG

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Example code for ExportPackageXMI in C#
« on: January 20, 2017, 02:34:18 am »
Hello,

I'm looking to export models from EA into XMI using C#.

From the SDK documentation I assume that using the ExportPackageXMI would be the way to do it but I'm not sure how to do it.
Could someone provide or point me towards an example?

Cheers,
Ian

Nabil

  • EA User
  • **
  • Posts: 147
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Example code for ExportPackageXMI in C#
« Reply #1 on: January 20, 2017, 03:58:51 pm »
Hello Ian,

Try this

//ExportPackageXMI (string PackageGUID, enumXMIType XMIType, long DiagramXML, long DiagramImage, long FormatXML, long UseDTD, string FileName)


Repository.GetProjectInterface().ExportPackageXMI(pkgGUID, EA.EnumXMIType.xmiEADefault, 1, 4, 1, 0, outputpath);

Hope this helps.

BR
Nabil

Nabil