Some questions about Sections in Rhino 8

Hi there,

I just discovered the Drafting > Section function Rhino 8, which is great and works very well for some use case of ours. However, I noticed there’s no Section class or similar in RhinoCommon. Investigating I noticed the section is represented as a ClippingPlaneObject in the RhinoDoc.ActiveDoc.Objects.

Now what I am trying to achieve is relate the objects that are being cut by the section to the section object itself. More specifically: Whenever I make a Section, I am trying to find that ClippingPlaneObject instance in C# (GH plugin to be precise, I can identifiy the section by name), detect which objects are being cut and then further annotate the section with additional information held by the geometric objects I am cutting.

Investigating a bit I saw no field or property of ClippingPlaneObject that contains a reference to any geometric objects it intersects. Is there another way of achieving this?

In general I wondered if someone has a bit more info on how exactly Sections work and how to make use of them programmatically. Like, are the cutting curves and hatches created inside a View object? Is this is where I could find references to my geometry?

Thanks a lot
Ben

I noticed this question is related to Get object information via Clipping Drawings?

So I wondered if - independent from Grasshopper - there’s some update or guidance on how to programmatically utilize sections and clipping planes with RhinoCommon @AndyPayne @rajaa ?

My goal is to create something similar to the picture below in code. And maybe even add more info to the drawing. Later on I want to put this in a layout.

Any help would be greatly appreciated.
Thanks a lot.
Ben

Currently there is no SDK exposed to extract clipping-drawings, but there is access to Make2D functions (HiddenLinDrawings - HLD), and of course all sectioning via intersection functions. Here is a C# sample for HLD to get you started:

Thanks for the info @rajaa

It would be a welcome addition in one of the next releases.

Cheers
Ben