Hello Forum,
is there a way to get the list of the last modified objects under RhinoCommon?
Thanks. L
Hello Forum,
is there a way to get the list of the last modified objects under RhinoCommon?
Thanks. L
I think you should be able to combine doc.Objects.MostRecentObject()
and doc.Objects.AllObjectsSince(obj)
:
var obj = doc.Objects.MostRecentObject();
// do stuff
RhinoObject[] lastModified = doc.Objects.AllObjectsSince(obj);
If you are scripting Rhino command and need to know what changed, you can do something like this:
https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsLastCreatedObjects.cs
– Dale
Dale,
perfect!
Thanks. L
It appears the solution provided by @menno is identical to that of mine, and perhaps a bit more modern…