Hi @Rh-3d-p,
Is this helpful?
import Rhino
import scriptcontext as sc
def test_hatch_boundary():
go = Rhino.Input.Custom.GetObject()
go.SetCommandPrompt("Select hatches")
go.GeometryFilter = Rhino.DocObjects.ObjectType.Hatch
go.GroupSelect = True
go.SubObjectSelect = False
go.GetMultiple(1, 0)
if go.CommandResult() != Rhino.Commands.Result.Success: return
for objref in go.Objects():
hatch = objref.Hatch()
if hatch:
curves = hatch.Get3dCurves(True)
for curve in curves:
sc.doc.Objects.AddCurve(curve)
sc.doc.Views.Redraw()
if __name__ == "__main__":
test_hatch_boundary()
– Dale