Working with Resource Assignment Budgets
Contents
[
Hide
Show
]Assignment Budget
The ResourceAssignment class exposes a number of properties for working with an assignment’s budget:
- BudgetCost represents the budgeted cost of resources assignments (decimal).
- BudgetWork represents the budgeted work of resource assignments to date (TimeSpan).
To see assignment budgets in Microsoft Project:
- On the Task Usage page, select the Insert menu and then Column.
- Add columns.
Getting Assignment Budget with Aspose.Tasks
The following example shows how to get an assignment budget using Aspose.Tasks.
1Project project = new Project("New Project.mpp");
2
3// Print assignment budget cost and budget work
4foreach (ResourceAssignment ra in project.ResourceAssignments)
5{
6 Console.WriteLine(ra.Get(Asn.BudgetCost));
7 Console.WriteLine(ra.Get(Asn.BudgetWork).ToString());
8}