Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: A.K. on February 24, 2012, 02:37:08 am

Title: Get Baselines
Post by: A.K. on February 24, 2012, 02:37:08 am
Hello

 I need to get baselines. But i dont want to load them as actually the stuff i need i could read from the xml file. Unfortunately i have found out that baselines are stored in the EAP file in a zipped format. Is there any possibility to retrieve them?

Many thanks!

Cheers
Alex
Title: Re: Get Baselines
Post by: qwerty on February 24, 2012, 03:32:47 am
You can issue a SQL and unzip the resulting column.

q.
Title: Re: Get Baselines
Post by: A.K. on April 03, 2012, 06:24:41 am
Thanks

But can you tell me how i can unzip it? I tried the inherent GZip of the NET plattform but it says wrong header
Title: Re: Get Baselines
Post by: Sunshine on April 03, 2012, 09:53:54 am
Here are a couple of thoughts.
a) copy the EA model and get the baseline via normal mechanisms so you have one working model and one with the baseline. Then open both models simultaneously so you can view both at the same time
b) Use the baseline compare feature.

The first might be easier
 :)
Title: Re: Get Baselines
Post by: Geert Bellekens on April 03, 2012, 03:23:02 pm
Maybe you could try searching this forum for "zip".
There might be some code samples..

Geert
Title: Re: Get Baselines
Post by: Stefan Bolleininger on April 03, 2012, 04:30:27 pm
Isn't the "compare baseline" function intended to be used for that?
Title: Re: Get Baselines
Post by: Geert Bellekens on April 03, 2012, 05:07:38 pm
Sethor, Sunshine,

Where do you get the idea that Alex needs to compare baselines with each other?
I don't read anything like that in his question :-?

Geert
Title: Re: Get Baselines
Post by: qwerty on April 03, 2012, 06:12:56 pm
The answer is quite simple. If you look at the data you discover they are base64 encoded. Just decode that and you have the zip format in binary.

q.
Title: Re: Get Baselines
Post by: A.K. on April 03, 2012, 06:41:55 pm
Thanks a lot!

Solved it