Boundary curve of multiple curves (open and closed)

Hi all,

I am trying to automatize creating a boundary curve of a bunch of closed and open curves through a python script. I already read a thread about a similar task (RC: Create a boundary curve), but for my task, this script not working smoothly. So I tried a workaround, using the “CurveBoolean” command from Rhino. The output is what I wanted it to be, but there’s still some clicking needed. Do you have any ideas on how to optimize it? I thought about simulating the clicks by the script, but I couldn’t find a working solution.

Thanks in advance,
Lukas

Chair.3dm (2.8 MB)

BoundaryCurve.py (1.5 KB)

Hi Lukas,

Perhaps you can try running the CurveBoolean commands with options in your script:BoundaryCurve.py (1.5 KB)

    rs.Command("_CurveBoolean _C=No _A _Enter")

Hi David,
thanks for your reply. It worked at the very first time, after that never again… That’s very strange. Maybe it’s because I am working on a Mac and that causes some problems sometimes. But in the end, the script shall be used on Mac and Windows.