Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Michael co on November 20, 2013, 03:34:59 am

Title: Make comparision between 2 baselines ?
Post by: Michael co on November 20, 2013, 03:34:59 am
I am struggling from 2 weeks to find any possible API to compare between 2 baselines or to get the differences between 2 Baselines.
or any api like  GetProjectInterface().DoBaselineCompare
but this function compare the current package with all baselines...
so I need to compare baseline per baseline , not baseline per current package..
 ::)
Title: Re: Make comparision between 2 baselines ?
Post by: Eve on November 20, 2013, 09:14:38 am
EA does not provide any functionality to compare between two baselines.
Title: Re: Make comparision between 2 baselines ?
Post by: Uffe on November 21, 2013, 12:26:05 am
There's a sort of workaround, but it's pretty clunky.

1) Make a copy of your project or (not as good) export the package and import it into an empty project.

2) Import the relevant baselines into the temporary project.

3) In the temporary project, restore the package to the latest of the baselines you want to compare.

4) Compare to the earlier baseline.

This should work, but is pretty time-consuming so it only makes sense if you only need to do a baseline-to-baseline comparison fairly rarely.

It could be automated using Repository.CreateModel(), Project.ProjectTransfer() (or Project.Export/ImportXMIEx()), Project.GetBaselines(), Project.DoBaselineMerge() and Project.DoBaselineCompare(), while taking user security into account, of course. :)

/Uffe
Title: Re: Make comparision between 2 baselines ?
Post by: Michael co on November 22, 2013, 01:10:26 am
I see this will take a lot of time to make export and import of the old baselines,

now how can I hide this window
(http://i41.tinypic.com/sg5r20.jpg)
Thnks
Title: Re: Make comparision between 2 baselines ?
Post by: Uffe on November 22, 2013, 07:13:37 pm
You can't hide it, but EA remains responsive while the comparison is running. You probably can't rely on the results if you make changes to the package being compared though.

There are some API methods to manipulate the UI, but I'm not aware of one that allows you to hide this specific dialog.

/Uffe