Detect if an object is deleted or created


(Sebastiano Del Gobbo) #1

Hi!
Is there a way to detect real object creation and destruction, avoiding the “fake” ones (i.e. happening during object transformation).
Thanks a lot!


(Dale Fugier) #2

Hi @software_comas,

Watch for the RhinoDoc.DeleteRhinoObject event. For an example of how to use this, review the SampleCsEventWatcher project, which is found in the developer sample repo in GitHub.

– Dale


(Sebastiano Del Gobbo) #3

Thanks a lot, Dale! :slight_smile: