B
bcoleman
I am using VB code to modify a project which has been saved as XML. The only
modification I'm making is to add actual work to the project which I do by
modifying the TimephasedData nodes in the xml document for the associated
assignments. Specifically I open the XML document, delete the existing all
timephased nodes for the assignment, and then create new timephased node for
the actual work. The reason I do this is because I’m potentially adding many
timephased data entries and have found in the past that it’s very slow when
doing this through the API However, this does not seem to calculate
correctly. An example of this:
1) Create a project with one fixed work task with 6 days duration and 42
hours planned work. The units on the assignment are calculated at 88%. If
you examine the task through the Task Usage view you see an even distribution
of 7 hours per day. Save this project as an XML file.
2) Open the project in the WinProj client from the XML file. Through the
Task Useage view add 10 actual hours of actual work on the first day of the
task and 1 hour on the second day. At this point the task duration has
changed to 6.43 days and my remaining hours are distributed over the next 5
days as follows: 7,7,7,3. As well the units have been recalculated to 125%.
Close the file without saving.
3) Modify the XML document to add to TimephasedData nodes for actual hours:
10 hours on the first day and 1 hour on the second day. Open the file in the
Winproj client and you'll see the following remaining hours: 7.03, 7.03,
7.03, 7.03, 2.83
Can anyone explain what I'm doing wrong to get this discrepancy?
modification I'm making is to add actual work to the project which I do by
modifying the TimephasedData nodes in the xml document for the associated
assignments. Specifically I open the XML document, delete the existing all
timephased nodes for the assignment, and then create new timephased node for
the actual work. The reason I do this is because I’m potentially adding many
timephased data entries and have found in the past that it’s very slow when
doing this through the API However, this does not seem to calculate
correctly. An example of this:
1) Create a project with one fixed work task with 6 days duration and 42
hours planned work. The units on the assignment are calculated at 88%. If
you examine the task through the Task Usage view you see an even distribution
of 7 hours per day. Save this project as an XML file.
2) Open the project in the WinProj client from the XML file. Through the
Task Useage view add 10 actual hours of actual work on the first day of the
task and 1 hour on the second day. At this point the task duration has
changed to 6.43 days and my remaining hours are distributed over the next 5
days as follows: 7,7,7,3. As well the units have been recalculated to 125%.
Close the file without saving.
3) Modify the XML document to add to TimephasedData nodes for actual hours:
10 hours on the first day and 1 hour on the second day. Open the file in the
Winproj client and you'll see the following remaining hours: 7.03, 7.03,
7.03, 7.03, 2.83
Can anyone explain what I'm doing wrong to get this discrepancy?