ScheduleFromStart

Prj.ScheduleFromStart field

Determines whether to calculate the project schedule forward from the start date.

public static readonly Key<NullableBool, PrjKey> ScheduleFromStart;

Examples

Shows how to reschedule the project from finish date instead of the start one.

var project = new Project();
project.Set(Prj.ScheduleFromStart, false);
project.Set(Prj.FinishDate, new DateTime(2020, 1, 1));

// Now all tasks dates (Start, Finish, EarlyStart, EarlyFinish, LateStart, LateFinish) are calculated. To get the critical path we need to calculate slacks (can be invoked in separate thread, but only after calculation of all early/late dates)
project.Recalculate();

foreach (var task in project.CriticalPath)
{
    Console.WriteLine(task.Get(Tsk.Id));
    Console.WriteLine(task.Get(Tsk.Name));
}

See Also