Select Objects inside a curve and export that to DXF

In RhinoCommon, I am trying to find a function to select objects within a curve. Objects can be span across multiple layers.

I want to Export all those objects into a DXF file for machining.

Is there a way to do this without running script?

Also, is there a way to Deselect all objects

Rhino does not have a function that will select objects within a curve.

If you want to select all planar curves that are within a curve, then iterate the document, looking for curves, and then use the Rhino.Geometry.Curve.Contains function to get to see if the curve is inside of your target curve.

No, select your objects and then script the Export command.

If you have the document, you can just do this:

doc.Objects.UnselectAll();
1 Like