Reputation: 559
I want to be able to read the resource assignments (for each day) for a task in MS Project using VSTO
MS Project VSTO gives us the TimeScaleValues API that lets us read resource assignments for a task. We can then use a loop to iterate over each day.
The problem with this is that for WBS where each task has a starting and ending date spanning many months, it causes a massive slowdown (lots of days to iterate x tasks x # of resources per task).
I was wondering if there is a faster API to read back all the assignments, which would, maybe give me back the hours assigned on each day for a resource for a given task, as a comma-separated list?
Upvotes: 1
Views: 480
Reputation: 347
I think you're using the only available APi to do what you need, but here's a couple of tips (which you may already be doing) to optimise performance:
Having optimised it as much as possible, I still find it is a slow job, so I make sure there's a progress bar/status updates to keep the user informed while its executing.
Not the answer you were looking for, but I hope it helps.
Upvotes: 1