Book a Demo

Author Topic: Is there a Package.Import()  (Read 3229 times)

Alin Dobre

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Is there a Package.Import()
« on: July 15, 2009, 07:27:22 am »
Is there a Package.Import(), or anyway of having a package be imported to another package to allow for the use of the imported package elements; using the automation interface?

Thanks in Advance.

Regards,

Alin Dobre

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Is there a Package.Import()
« Reply #1 on: July 15, 2009, 07:42:43 am »
Hi Alin,

You might be able to do this via XMI. The Project Interface provides methods to export and import an XMI file. [No, you cannot use a string or stream; it has to be a file.]

Make sure you try out several variations of this (with different parameters) on trial (i.e. throwaway) projects before you use these methods on production projects. The results can be pretty dramatic if you get it wrong.

David
No, you can't have it!

Alin Dobre

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Is there a Package.Import()
« Reply #2 on: July 15, 2009, 09:42:43 am »
David,

Thanks.

Regards,

Alin