Custom grip object deleted

Is there any way we can understand if a custom grip was deleted? I tried with CustomGripObject.OnDeleteFromDocument but it is not fired when the object is deleted. Is there some other way that I do not see? I have noticed that in the C++ SDK there is a method that notifies the grip container object that some objects were deleted.

Any help would be appreciated. Thanks a lot,

Hi @Alberto,

There is no event that is triggered when a grip is deleted. However, a RhinoDoc.DeleteRhinoObject event will be fired when the original curve object is being deleted (e.g. moved to the Undo stack). A RhinoDoc.AddRhinoObject will follow.

– Dale

Hi Dale,
that is unfortunate. I am trying to replicate the edit curve with custom grip points that display a custom preview of the changes. I will try to handle it as you suggested.