You might consider using the hatch object GUID to reference it in Grasshopper like this.
private void RunScript(Guid id, ref object Outer, ref object Inner)
{
var rhinoObject = RhinoDocument.Objects.FindId(id);
if (rhinoObject is HatchObject)
{
var hatch = rhinoObject.Geometry as Hatch;
Outer = hatch.Get3dCurves(true);
Inner = hatch.Get3dCurves(false);
}
}
import Rhino
rhino_object = Rhino.RhinoDoc.ActiveDoc.Objects.Find(id)
if type(rhino_object) is Rhino.DocObjects.HatchObject:
hatch = rhino_object.Geometry
Outer = hatch.Get3dCurves(True)
Inner = hatch.Get3dCurves(False)
HatchBoundary.gh (7.4 KB)
