Book a Demo

Author Topic: API and ExportPackageXMI method  (Read 5742 times)

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
API and ExportPackageXMI method
« on: June 05, 2013, 10:30:10 pm »
Hello,

I've upgraded my EA edition to version 10 and this method stopped to work correctly :(. I mean this line of code opens "Publish Model Package" dialog instead of regular "Export Package to XMI" one and shows Error message in the midle of the execution process.

myProject.ExportPackageXMI(selPackage.PackageGUID,EA.EnumXMIType.xmiEA241, 0, -1, 0, 0, fileName);

Thanks.

I did try to use different kind of EnumXMIType, but nothing helped :(.

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Re: API and ExportPackageXMI method
« Reply #1 on: June 06, 2013, 10:35:03 pm »
No suggestions :(?

Thanks.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: API and ExportPackageXMI method
« Reply #2 on: June 07, 2013, 08:31:09 am »
Publish Model Package just means export XMI with the full range of options so that you can control how other tools import the XMI. Given that function allows exporting to dialects of XMI that EA can't fully round-trip it's appropriate to use that dialog.

If you actually included some information about the error maybe that could be addressed, but with the information available there is nothing that anyone could do to help you.