Author Topic: Make comparision between 2 baselines ?  (Read 3694 times)

Michael co

  • EA User
  • **
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Make comparision between 2 baselines ?
« 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..
 ::)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Make comparision between 2 baselines ?
« Reply #1 on: November 20, 2013, 09:14:38 am »
EA does not provide any functionality to compare between two baselines.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Make comparision between 2 baselines ?
« Reply #2 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
My theories are always correct, just apply them to the right reality.

Michael co

  • EA User
  • **
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: Make comparision between 2 baselines ?
« Reply #3 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

Thnks
« Last Edit: November 22, 2013, 01:14:36 am by michael17 »

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Make comparision between 2 baselines ?
« Reply #4 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
My theories are always correct, just apply them to the right reality.