ResourceLeveler.ClearLeveling

ClearLeveling(Project)

Clears any leveling delay that was previously added to the project during resource leveling.

public static void ClearLeveling(Project project)
ParameterTypeDescription
projectProjectProject to clear leveling.

Examples

Shows how to level all project’s resources using default options.

var project = new Project(DataDir + "Software Development Plan.mpp");

var levelingResult = ResourceLeveler.LevelAll(project);

foreach (var task in levelingResult.AffectedTasks)
{
    Console.WriteLine("Task affected by the leveling operation: " + task.Name);
}

project.Save(OutDir + "Software Development Plan.leveled.mpp");
ResourceLeveler.ClearLeveling(project);

Console.WriteLine("Leveling cleared");

See Also


ClearLeveling(IEnumerable<Task>)

Clears any leveling delay that was previously added to the specified tasks during resource leveling.

public static void ClearLeveling(IEnumerable<Task> tasks)
ParameterTypeDescription
tasksIEnumerable`1The enumerable containing tasks for which leveling delay should be cleared.

See Also