RhinoCommon equivalent to Rhinoscript-LastCreatedObjects


#1

@stevebaer
hello everybody, dear Steve

Does Rhinocommon offer any equivalent to Rhinoscript-LastcreatedObjects ?

If not:
i know there is “ObjectTable.AllObjectsSince” in Rhinocommon.
How do i get the current “runtimeSerialNumber” ?

Pseudocode

int timestamp = RhinoClockOrSomethingElse.CurrentRuntimeSerialNumber();
// a lot of things happen inbetween
// ...
// somewhere later:
RhinoObject[]  newObjects = AllObjectsSince(timestamp);

thanks for help

best

Tom


(Dale Fugier) #2

Hi @Tom_,

Try this:

– Dale


#3

great. many thanks.