uniqueIDs for inserted projects

B

Brennen M

Hello,
I am wondering if there is anyway to determine which 'magic number'
MSProject adds to the UniqueIDs of tasks from inserted projects. It is
genearally a multiple of 2 ^ 22. To reverse the one does:
SubprojectTaskID = MasterProjectTask.UniqueID MOD 4194304. My problem
is that I have the UniqueID for a task from the subproject but would
like to be able to access the same task in the master.

Thanks - hope this makes some sort of sense...

Brennen
 
J

JD

Brennen M said:
Hello,
I am wondering if there is anyway to determine which 'magic number'
MSProject adds to the UniqueIDs of tasks from inserted projects. It is
genearally a multiple of 2 ^ 22. To reverse the one does:
SubprojectTaskID = MasterProjectTask.UniqueID MOD 4194304. My problem
is that I have the UniqueID for a task from the subproject but would
like to be able to access the same task in the master.

Thanks - hope this makes some sort of sense...

Brennen

I think you can use the Project or Subproject property in conjunction with
the UID to uniquely ID tasks. As far as I can tell the magic number depends
on the order in which the subprojects are inserted and I don't think that
there is any way of determining this. You could check the creation date of
the top level of the inserted task... I'm not sure if it would work and I
don't have project here so take a look.

-Jack Dahlgren
 

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