1
Automation Interface, Add-Ins and Tools / Access to baseline creation date
« on: May 13, 2024, 11:52:23 pm »
I'm developing an add-in and need to access the creation dates of a package's baselines and use these as part of a generated document's release history.
The following snippet retrieves the baseline information's basic elements (version, name, notes) correctly as raw XML.
So, baselineInfo can be post-processed to become part of the document. However, it does not contain any information about the baseline's creation date. In our case, I could ask users to use a manually entered date entry in the baseline notes but that could be falsified, so I don't want to go with that option.
The EA Menu's Design --> Package -> Manage -> Find Baselines feature provides a Baseline_Date column for all baselines of a package, with help of the Find in Project feature. So in the DB there is at least a table that stores the baseline creation date values.
Is there any way to reach the Baseline_Date values with help of the object model in a C# add-in?
The following snippet retrieves the baseline information's basic elements (version, name, notes) correctly as raw XML.
Code: [Select]
Project projInterface = currentRepository.GetProjectInterface();
string baselineInfo = projInterface.GetBaselines(pkg.PackageGUID, "");
So, baselineInfo can be post-processed to become part of the document. However, it does not contain any information about the baseline's creation date. In our case, I could ask users to use a manually entered date entry in the baseline notes but that could be falsified, so I don't want to go with that option.
The EA Menu's Design --> Package -> Manage -> Find Baselines feature provides a Baseline_Date column for all baselines of a package, with help of the Find in Project feature. So in the DB there is at least a table that stores the baseline creation date values.
Is there any way to reach the Baseline_Date values with help of the object model in a C# add-in?