Hi!
I’m trying to filter objects in a detail view based on the visibility and exclude hidden objects or on hidden layer or not visible because outside the range of a clipping plane etc.
I use the api call doc.Objects.FindClippingPlanesForViewport(detail.Viewport) to get all clipping planes that are active for my detail view.
It works well, however if I HIDE the clipping plane object in the model, the above function does not return it.
Is this intended? I would expect that active clipping planes are returned even if hidden or on hidden layers since they are still clipping out geometries in the detail view.
I vibe coded a working example.
FindClippingPlanesPerViewport.py (4.0 KB)
Thank you,
Gianluca