Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Geert Bellekens on May 10, 2017, 03:30:27 pm

Title: Zipping MDZip files
Post by: Geert Bellekens on May 10, 2017, 03:30:27 pm
Hi,


A client of mine is going through the process of migrating their Magicdraw models to Enterprise Architect.
Because of some issues in transferring the models we wanted to unzip the mdzip files, change the xmi contents, and then rezip them in order to import them into EA.

But for some reason that doesn't seems to work. Even without changing anything to the contents, just unzipping and rezipping the file and then trying to import it into EA we get "analyzing mdzip file" for a few seconds and then it stops.
I'm suspecting that we are using the wrong zip settings to rezip the file.

Does anyone know which settings we should use to produce a valid mdzip file that can be imported into Enterprise Architect?

Thanks

Geert
Title: Re: Zipping MDZip files
Post by: qwerty on May 10, 2017, 06:06:16 pm
Try creating a re-zipped unchanged copy and see whether that's the cause.

q.
Title: Re: Zipping MDZip files
Post by: Geert Bellekens on May 10, 2017, 06:11:02 pm
Try creating a re-zipped unchanged copy and see whether that's the cause.

q.
I did, and it didn't work anymore.
There must be a secret sauce for which I'm missing the recipe.

Geert
Title: Re: Zipping MDZip files
Post by: qwerty on May 10, 2017, 06:50:20 pm
Does a binary comparison show any magic difference?

q.
Title: Re: Zipping MDZip files
Post by: Geert Bellekens on May 10, 2017, 07:21:08 pm
all kinds of differences, too much to get much wiser from,... :(

Geert
Title: Re: Zipping MDZip files
Post by: Geert Bellekens on May 10, 2017, 08:56:51 pm
Turned out to be a typical PEBKAC problem.
Instead of re-zipping the individual files, I was zipping the directory, feel kind of stupid right now  :-[

Geert
Title: Re: Zipping MDZip files
Post by: qwerty on May 10, 2017, 10:33:54 pm
Happens to all of us :-)

q.