Is it possible to recreate an objectID? I have an attribute reference that I want to update, instead of searching for the block everytime and then finding the right attribute, when I read the attribute I get the objectID.OldIdPtr and store it while the user is doing other things. Then when the user wants to udpate the attribute, I want to be able to recreate the objectID and then just tr.getobject(objID,.... and update the attribute that way.
Am I way off on this? I thought of storing the entire objectID object, but the problem is that if the user wants to save and close, then I store all information in a xml file, and I can't store the entire objectID object in xml, I can only store the "id".
Any help would be appreciated.
I did try this:
Dim id As New IntPtr(Convert.ToInt32(ObjIDStr))
Dim ObjID As New ObjectId(id)
But that sets the OldId, and all the rest of the properties say something about corrupt memory...
Thanks,
Viktor.