Author Topic: Fetching Baselines for package  (Read 1367 times)


  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Fetching Baselines for package
« on: January 12, 2017, 08:16:59 pm »

i want to fetch the Baselines for each package.
i do this in Java:

String baseline = repository.GetProjectInterface().GetBaselines(child.GetPackageGUID(), "");

The baseline  String is so: <EA.BaseLines package="{3832D96F-AFF6-4831-8C3B-89DEAFF4DE54}"/>
But i want to fetch the version and the notes of this basline!!

how can i do that?


  • EA Practitioner
  • ***
  • Posts: 1257
  • Karma: +91/-8
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Fetching Baselines for package
« Reply #1 on: January 12, 2017, 09:20:10 pm »

As you've noticed there's no Baseline class, so you'll have to go to the database to retrieve that information.

Each baseline has a row in t_document with DocType 'Baseline' and ElementType 'Package'. The GUID you receive from GetBaselines() should be matched against DocID.
DocName holds the name the package had when the baseline was taken, while ElementID has the GUID of the element/package. Version and Notes contain what you'd expect, and the date and time are in DocDate.


My theories are always correct, just apply them to the right reality.


  • EA User
  • **
  • Posts: 619
  • Karma: +18/-0
    • View Profile
Re: Fetching Baselines for package
« Reply #2 on: January 27, 2017, 06:51:48 pm »

Blog: | Free utilities addin: