PrimaveraProjectProperties.BaselineProjects
Contents
[
Hide
]PrimaveraProjectProperties.BaselineProjects property
Gets array of baseline projects of current project. Is applicable to projects read from Primavera XML files containing exported baselines.
public Project[] BaselineProjects { get; }
Examples
Shows how to read a project from a Primavera XML file and examine baseline project data.
Project project = new Project(DataDir + "BaselineProjects.xml");
Console.WriteLine("Current baseline project uid: " + project.PrimaveraProperties.CurrentBaselineProjectId);
foreach (var baselineProject in project.PrimaveraProperties.BaselineProjects)
{
Console.WriteLine("Baseline project: uid: {0}, name: '{1}'", baselineProject.Uid, baselineProject.Name);
}
var baseline1 = project.PrimaveraProperties.BaselineProjects[1];
var task = GetTaskByActivityId(project, "A1000");
var baselineTask = GetTaskByActivityId(baseline1, "A1000");
Console.WriteLine("Task budgeted total cost: " + task.PrimaveraProperties.BudgetedTotalCost);
Console.WriteLine("Task baseline budgeted total cost: " + baselineTask.PrimaveraProperties.BudgetedTotalCost);
See Also
- class Project
- class PrimaveraProjectProperties
- namespace Aspose.Tasks
- assembly Aspose.Tasks