Does anyone have any trouble setting the PartID field of a node? When I create the node I do, for example: n.PartID = 3456;
From the User Guide:
When you need to refer to objects, such as to the ports of a link that you are storing, you can just pass the PartID. Upon loading, you can find the IGoIdentifiablePart in the document with that ID by calling GoDocument.FindPart. Remember to save the LastPartID in your document too, to avoid any possible duplicate PartIDs.
Of course, you can implement your own mechanism for keeping track of identities, instead of using PartID. Typically you will have one or more hash tables used to map key values to nodes and perhaps ports if there might be more than one port in a node. (DataSetDemo does this.)