Book a Demo

Author Topic: Programatically Export XMI  (Read 3701 times)

Tobin_Harris

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Programatically Export XMI
« on: November 05, 2004, 09:29:45 am »
Hi there,

Is there a way of programatically exporting the XMI for a given package, including image generation?

What I'm after is the equivalent of selecting "Export Package to XMI file" from the model tree, only through the API without asking for user intervention.

I considered using the Project Interface for manually constructing XMI segments, but it would be better if EAs nice XMI export functionality could be invoked directly!

Thanks

Tobin


Tobin_Harris

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Programatically Export XMI
« Reply #1 on: November 05, 2004, 09:35:22 am »
Responding to myself  ;D :
Looks like the ...

ExportPackageXMI (String, Long, Long, Long, Long, Long, String)  

... method on the Project class may be the one I'm after!

I'll try this next, but any other thoughts welcome

Tobin

GMS

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Programatically Export XMI
« Reply #2 on: May 01, 2007, 05:02:01 am »
Hi There,

I have been having a problem using the ExportPackageXMI method. I put in the enum EnumXMIType.xmiEA21 as the type I am wanting to export, but the created XML is of type xmi.version="1.1". Any ideas as to how to export to type 2.1?