Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

2.1.. Recalculate UIDs.

Last post 06-02-2009, 10:38 PM by alcrus. 1 replies.
Sort Posts: Previous Next
  •  06-02-2009, 2:35 AM 182127

    2.1.. Recalculate UIDs. .NET

    Hi,

    In the 'project' object, there are a number of methods to calculate UIDs and IDs.  Under what conditions, would this method be needed.  For example, when new tasks (or other objects) are added, do these methods assign the new UIDs and IDs. 

    I would like to check that if a collection of tasks (or other objects) already have UIDs assigned, these methods will not change them. If UIDs that have already been assigned are changed, is this behaviour consistent with MS Project?

    Regards, Bruce

     
  •  06-02-2009, 10:38 PM 182277 in reply to 182127

    Re: 2.1.. Recalculate UIDs.

    Hello Bruce,

    CalcTaskIds, CalcResourceIds and etc should be called after inserting/moving/deleting new tasks or resources. Also you should call it when create project from scratch. Since Task.Children property is just ArrayList, it can't recalculate Ids automatically on changing.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
View as RSS news feed in XML