Author Topic: How to convert many .EAP files into XMI files?  (Read 10044 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #15 on: June 04, 2014, 04:30:11 am »
No. It's a package which you export. Not a diagram. So is it that? Export a package?

q.

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #16 on: June 05, 2014, 07:36:16 pm »
yes, I do like this. can I do this automatically?!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #17 on: June 05, 2014, 07:52:48 pm »
Yes. You can export a package automatically. Use EAProjectInterface.ExportPackageXMI (see help for details)

Note that version control allows to save a package stub as XMI. This can't be done with the above (or you need to use ExportPackageXMIex). So if you export a package it will include all sub-packages.

q.

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #18 on: June 05, 2014, 08:17:14 pm »
I will try, do you have an example, or tutorial

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #19 on: June 05, 2014, 08:39:34 pm »
You might look into my Scripting book (shameless self plug) but that does not detail the above mentioned method.

Of course it depends on the language you want to use. To access the project interface object you need to retrieve it via EARepository.GetProjectInterface ()

q.

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #20 on: June 05, 2014, 09:52:16 pm »
could you give me the link of your book, or where I can found it, please

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #21 on: June 05, 2014, 11:32:24 pm »
It's the banner below my posts :-)

q.

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #22 on: June 06, 2014, 01:26:46 am »
Ohh thanks, I will share you when I succeed with the scripts
thank you