Aspose.Task Calculation Mode

Is there any where I can go where it outlines the behaviour of the Calculation Mode ‘Automatic’… i.e. what fields are calculated, if this option is set?

What happens if I set the Actual Start Date for a Task, and also include ‘Start’ date, would it overwrite my ‘Start’ date as per what happens when I do the same manually in MS Project.

All I can find is the following documentation, which doesn’t give a detailed view of what is calculated:

Hi,

Thank you for contacting Aspose support team.

Following properties are updated in Manual and Auto mode. Please feel free to write us back if you have any other query in this regard.

Manual Mode

Task

TaskStart

TaskDuration

Assignment Fields

AssignmentWork

AssignmentRemainingWork

AssignmentRegularWork

AssignmentActualWork

AssignmentOvertimeWork

AssignmentActualOvertimeWork

AssignmentRemainingOvertimeWork

AssignmentUnits

AssignmentCost

AssignmentRemainingCost

AssignmentActualCost

AssignmentOvertimeCost

AssignmentActualOvertimeCost

AssignmentRemainingOvertimeCost

AssignmentBudgetCost

AssignmentBudgetWork

AssignmentWorkContour

AssignmentPercentWorkComplete

AssignmentActualStart

AssignmentActualFinish

AssignmentDelay

Auto Mode

Task

TaskDeadline

TaskStart

TaskFinish

TaskDuration

TaskActualStart

TaskActualFinish

TaskWork

TaskCost

TaskFixedCost

TaskConstraintDate

TaskLevelingDelay

TaskActive

Resource

RscStandardRate

RscOvertimeRate

Assignment

AssignmentWork

AssignmentRemainingWork

AssignmentRegularWork

AssignmentActualWork

AssignmentBudgetCost

AssignmentBudgetWork

AssignmentUnits

AssignmentOvertimeWork

AssignmentActualOvertimeWork

AssignmentRemainingOvertimeWork

AssignmentWorkContour

AssignmentPercentWorkComplete

AssignmentActualStart

AssignmentActualFinish

AssignmentDelay

So the Calculation Modes are equivalent to MS Project Scheduling Modes? Auto Scheduling: New tasks are automatically scheduled, while Manual Scheduling: New tasks are manually scheduled? Please confirm if my understanding correct.
I am looking for something that can replicate the MS Project calculations where when you set the Actual Start of a task it will change the Start date of a task. Please inform me if your Calculation mode capability handles that behaviour. Otherwise I have to build that calculation into my code.


Hi,


Yes, these represent the scheduling modes of the Project. You can observe this from the following sample code where we set Start and Actual Start date of a task and print the Start date. You will notice that the task’s Start time is changed when we set the Task’s Actual Start. If you feel any issue, please feel free to write to us.

Code:

Project project = new Project();
project.CalculationMode = CalculationMode.Automatic;

Task t1 = project.RootTask.Children.Add(“T1”);

t1.Set(Tsk.Start, DateTime.Today.AddDays(4));
Console.WriteLine(t1.Get(Tsk.Start));

t1.Set(Tsk.ActualStart, DateTime.Today.AddDays(6));
Console.WriteLine(t1.Get(Tsk.Start));