Is there a way to check the float on a task?
Hi Sean,
Thank you for writing to Aspose support team.
Can you please share more information about your requirements as we are not able to understand your query. We shall look into your requirements once you share further information and assist you further about it.
When calculating critical path, you must calculate all project tasks' float to do it. Float will be zero for a critical path task.
Since ASPOSE must be using float calculations for critical path internally for the project.criticalpath method, I would assume that the individual float values (and overall project float) would be available as well. Or is this not this case?
Displaying individual task "float" along with critical path is standard in MS Project (Is called "slack" in MS Project)
Hi Sean,
Aspose.Tasks supports the float values and it can be retrieved as follows:
Project project = new Project();
project.Set(Prj.StartDate, DateTime.Now);
Task task = project.RootTask.Children.Add(“Task1”);
int TaskFreeSlack = task.Get(Tsk.FreeSlack);
int TaskTotalSlack = task.Get(Tsk.TotalSlack);
For MS Project Data Interchange format the TotalSlack and FreeSlack values are defined as integers and are in tenth parts of minute. For example -249 days x 8 hours/day x 60 minutes/hour x 10 tenths/minute = -1,195,200 tenths. As we have 480 minutes a day, so slack value of one day will be equal to 4800.
Please feel free to write us back for any other query in this regard.