ActivityIdIncrement

PrimaveraSaveOptions.ActivityIdIncrement property

Gets or sets the increment used in renumbering of activity IDs.

public int ActivityIdIncrement { get; set; }

Examples

Shows how to work with <see cref=“Aspose.Tasks.Saving.PrimaveraSaveOptions” />.

var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

// create Primavera save options and tune them
var options = new PrimaveraSaveOptions
                  {
                      // define prefix and suffix of an activity
                      ActivityIdPrefix = "TEST",
                      ActivityIdSuffix = 10000,

                      // control renumbering of activities
                      ActivityIdIncrement = 5,
                      RenumberActivityIds = true
                  };

project.Save(OutDir + "WorkWithPrimaveraSaveOptions_out.xer", options);

See Also