P
prem1234
I am working on a MS Project addin.
We use "PredecessorTasks" collection on Task object to get the
details of the predecessor tasks of a task. This works fine when the
project is a simple project. In case of a project which has a
subproject inserted in it, if a task in master project has a
predecessor task in inserted project, the collection does not show
that predecessor. However the "TaskDependencies" collection on the
task shows the dependency. But the issue is if we inspect the
attributes of corresponding "TaskDependencies.Item(i).From", none of
them(ID, UniqueID)except "Name" match with that of predecessor task.
Is there any attribute (other than "name") on a task's
"TaskDependencies.Item(i).From" that can be used to get the
corresponding predecessor Task object in Tasks collection of
subproject (ie. An attribute that will be always same on
TaskDependencies.Item(i).From and corresponding Tasks.Item(j) so that
I can relate these two)?
Thanks in advance,
We use "PredecessorTasks" collection on Task object to get the
details of the predecessor tasks of a task. This works fine when the
project is a simple project. In case of a project which has a
subproject inserted in it, if a task in master project has a
predecessor task in inserted project, the collection does not show
that predecessor. However the "TaskDependencies" collection on the
task shows the dependency. But the issue is if we inspect the
attributes of corresponding "TaskDependencies.Item(i).From", none of
them(ID, UniqueID)except "Name" match with that of predecessor task.
Is there any attribute (other than "name") on a task's
"TaskDependencies.Item(i).From" that can be used to get the
corresponding predecessor Task object in Tasks collection of
subproject (ie. An attribute that will be always same on
TaskDependencies.Item(i).From and corresponding Tasks.Item(j) so that
I can relate these two)?
Thanks in advance,