Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
You can issue a SQL and unzip the resulting column.
q.
-
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
-
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
:)
-
Maybe you could try searching this forum for "zip".
There might be some code samples..
Geert
-
Isn't the "compare baseline" function intended to be used for that?
-
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
-
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.
-
Thanks a lot!
Solved it