Hello everyone)) I ran into one small problem. I need to do something with the object in the scene every time the object’s geometry changes. I was looking for a suitable event here - https://developer.rhino3d.com/api/RhinoCommon/html/Events_T_Rhino_RhinoDoc.htm, but unfortunately I didn’t find anything that worked for me. If anyone has any ideas on this, I will be very grateful))
You need the ReplaceRhinoObject event. Be sure to read the documentation for it, as it will tell you how tracking of object changes works. In short, on geometry change you’ll get an ReplaceRhinoObject event followed by DeleteRhinoObject event followed by AddRhinoObject event.
what s the best practice to see if 3 Events ReplaceRhinoObject / Delete / Undelete / Add belong to the same action / command / change?
check the CRCData of the OldRhinoObject / TheObject?
check the RuntimeSerialNumber of the OldRhinoObject / TheObject ?
You should be able to figure out which command has been run last before your event fired using Rhino.Commands.MostRecentCommandDescription using it’s DisplayString property, though I have yet to try this myself.
-Georg