Sub Main()
Const rhClippingPlane = &h20000000
Dim arrObjects, strObject
arrObjects = Rhino.ObjectsByType(rhClippingPlane, True)
For Each strObject In arrObjects
Call Rhino.Print(strObject)
Next
End Sub
But support for clipping planes in legacy RhinoScript is limited. You should really be using Python for this.
You might see of the TestDisableAllClippingPlanes and TestEnableAllClippingPlanes are helpful to you.
Now, another suggestion which would be even more wonderful.
Can we have an option to make what is hidden when geometry is clipped to be shown, but with a different display mode? Like wireframe for example?
Why?
Because often important geometry is hidden beyond the clipping plane. To understand what one is doing, something that is clipped needs to be shown. And seeing that geometry in wireframe for example would be very very helpful. Instead of having to show/hide what is clipped.