Class PrimaveraReadOptions

PrimaveraReadOptions class

Allows to specify additional options when reading Primavera Xml or Primavera Xer files.

public class PrimaveraReadOptions

Constructors

NameDescription
PrimaveraReadOptions()Initializes a new instance of the PrimaveraReadOptions class.

Properties

NameDescription
PreserveUids { get; set; }Gets or sets a flag that specifies whether original unique identifiers of entities should be preserved.
ProjectUid { get; set; }Gets or sets the UID of a project to read from file containing multiple projects.
ReadBaselineProjects { get; set; }Gets or sets a flag that specifies whether baseline projects should be loaded. The default value is true.
UndefinedConstraintHandlingBehavior { get; set; }Specifies the behavior used to process tasks with undefined constraints read from XER format.

Examples

Shows how to read a project from a Primavera XML or Primavera XER file containing multiple projects.

var options = new PrimaveraReadOptions();
options.ProjectUid = 3881;

// Returns project with special Uid
var project = new Project(DataDir + "PrimaveraProject.xml", options);
Console.WriteLine(project.Get(Prj.Name));

See Also