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

japanfather

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to convert many .EAP files into XMI files?
« on: May 27, 2014, 09:19:45 pm »
Hello everyone,

I have 120 .EAP files. I would like to convert these files into .xmi files (a batch-type manner). Should I implement a script or add-in in Enterprise Architect to transfer them? Please help me. Thank you! :)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #1 on: May 27, 2014, 09:34:21 pm »
Both is possible. Use the method you like most.

Usually the start with scripting is easier because you don't need the Addin stuff.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

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 #2 on: May 28, 2014, 12:19:56 am »
Maybe you should tell use why you would do that transfer.

q.

japanfather

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #3 on: May 28, 2014, 01:47:58 am »
Thank you to reply.

Maybe using script is easier especially in Linux shell script. Does Enterprise Architect support command in DOS or Linux?

I got this mission from my friend but I do not know his purpose:D
« Last Edit: May 28, 2014, 01:49:08 am by ran83816 »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #4 on: May 28, 2014, 02:33:40 am »
In EA you may use:
- VBScript
- JScript
- JavaScript

There's also a degugger available to make testing a lot easier.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

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 #5 on: May 28, 2014, 03:19:53 am »
Quote
Thank you to reply.

Maybe using script is easier especially in Linux shell script. Does Enterprise Architect support command in DOS or Linux?

I got this mission from my friend but I do not know his purpose:D
Then you should the hell kick him and tell you why ;)

From where, to where, for what purpose?

q.

japanfather

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #6 on: May 28, 2014, 01:26:00 pm »
I will try to use JScript or JavaScript in EA and the debugger. I also will force my friend to tell his purpose  ;)

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #7 on: June 03, 2014, 12:54:21 am »
Hi all, I also need this as I have many models and I want to compare these models by comparing the XMI files, instead of doing this for each
file, I want to convert it once.  So could you help me ::)?!

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 #8 on: June 03, 2014, 04:01:42 am »
Exporting a model via a script is fairly easy by using ExportPackageXMI from the project interface. But why the heck do you want to compare XMI? That sounds quite lunatic (sorry for the harsh words, but I can't find anything more reasonable).

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #9 on: June 03, 2014, 04:42:29 am »
If you want to compare *.xmi files you may ask Stefan Bolleininger. If I remember right I has done something.

If I remember right in the community is something about batch import/export.

Besides all: Comparing *.xml files isn't an easy job. If you are able to reduce the compare to a small subset it might be useful. If you want to compare full UML than you have a great task and you possibly will fail.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #10 on: June 04, 2014, 12:08:43 am »
anyway let me try, I want to start with class diagram. how I can export class diagram for 10 EAP file to xmi, and how to specify which version of xmi I want (1.3, 2.00, ...) is it possible or I have to do it manually ::)

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 #11 on: June 04, 2014, 12:12:42 am »
You can't even manually export a diagram.

q.

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #12 on: June 04, 2014, 12:37:51 am »
Sorry, I mean export class diagram in .EAP file into XMI file. But I want to know how I can do this automatically for 10 EAP files.

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 #13 on: June 04, 2014, 02:22:17 am »
I already said: you can't export a diagram, except as bit image.

q.
« Last Edit: June 04, 2014, 02:22:40 am by qwerty »

usermark

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to convert many .EAP files into XMI files?
« Reply #14 on: June 04, 2014, 02:58:22 am »

Project --> Model Import/Export --> Export Package to XMI

from this you can export diagram to XMI file  :-?