Hello all,
I am trying to export a given package as an XMI file using the 2.1 format of XMI.
With the EA interface, you just have to select "UML 2.1 (XMI 2.1)" item in the "XML Type" list.
But how to achieve this in a VBScript running from within EA (via the "Scripting" feature)?
The export format is normally defined by the EA.EnumXMIType enumeration, but VBScript can't access this information, precisely because it is an Enum type.
Here below is an extract of my code, it performs the export using the default XMI 1.1 format, because of the 0 value set to the XmiExportType variable. Which explicit value instead of 0 should I put to have a XMI 2.1 export (in other words, the hard value matching EA.EnumXMIType.xmiEA21)?
set projectInterface = Repository.GetProjectInterface()
XmiExportType = 0 ' this value is for xmiEADefault. And for xmiEA21 ???
result = projectInterface.ExportPackageXMI("EAPK_8EBC14C6_C767_4df0_9EC2_5FF5B8433A8D", XmiExportType, 0, -1, 1, 0, "export.xml")
I have tried several other values at random, without success.
Thank you