UniqueID of External Link in Consolidated Project

S

SpaceCamel

I have writen a macro that traces the logic in a schedule. It works fine in
a single project but can not follow a link to External tasks in a
consolidated project. It gets the UniqueiD of the predecessor but it is the
ID of the ghost task. How do I get the real unique ID of the predecessor.

Thanks,
 
B

Bill Bordiuk

Try UniqueIDPredecessors. You'll have to parse it but it gives the unique ID
of the predecessor task as well as its project name. How will you load the
'predecessor project'?
 
S

SpaceCamel

Yes, that gives the path and ID of the predecessor. I am looking for the
Consolidated UniqueID. In a consolidated file the projects are already
opened. But the UniqueID's are different.

I just need a way to identify the real predecessor.
 
S

SpaceCamel

I couldn't find any easy way to do this so I did it the hard way. I had to
add a pre-processing of schedule to put the Project Name and the
sub-project's UniqueID increment into an array. Then when I needed to follow
an external link I looked-up the Project Name and derived the UniqueID.

Not pretty , but it works.
-------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top