I’m writing a rhino plugin. The plugin is atempting to keep track of Breps using their ObjRef. The issue is, when a brep is moved, its ObjRef seems to invalidated. Is there any way to keep track of a brep, even after is is moved with the gumball?
More information:
The base ID is not actually changing, it seems like a new revision ID is being created. Why do I think this? When I use the what command on a surface, after the ID is a number in parentheses, this is the number that is changing. It seems like this is a revision number.
If I call RhinoDoc.ActiveDoc.Objects.Hide(ObjRef) after moving the referenced object, nothing happens. It seems like the Reference has died, but it has not. I can still used the ObjRef, but certain things like Hide and Show stop working.
Does anyone know whats going on?