Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: IanG 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
-
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