Job description
Hello,
I’m trying to apply hatches to closed geometries through RhinoInside “headless” in an external Python code, but I can’t make it work.
I have a code working when used with the Python editor in the Rhino GUI, but what I think is the equivalent with RhinoInside running headless doesn’t. Both codes define the hatching pattern, import the dxf, add the hatch pattern to the hatch table, select the curves and create a hatch. This works in both cases it generates no error, but when looking at the created hatch, in the GUI it contains 759 lines and in the rhinoinside version it contains 0 line.
Please find attached the code that works in the GUI, the one that doesn’t with RhinoInside and the dxf that is used in these codes. Can anyone observe the same behaviour as I do? Is there something wrong with the rhinoinside code?
Many thanks!
GUI_Python_Editor_Program.txt (1.3 KB)
RhinoInside_Program.txt (1.4 KB)
Square_test.dxf (158.2 KB)
