How get all CRhinoObjects?

Hi Guys.

This is simple question. I want to get array of all CRhinoObjects in active document.
Is there any method has provided to achieve it?

Thank you.

Hi @oktkhr0916,

Use a CRhinoObjectIterator. Here is an sample:

https://github.com/mcneel/rhino-developer-samples/blob/6/cpp/SampleCommands/cmdSampleSelectByName.cpp

The developer samples repo on GitHub has other examples too.

ā€“ Dale

1 Like