Dear all,
I’m trying to realize a sweep 2 rail using 2 rails and 2 curves.
I would like to select rails and curve by name but something doesn’t work.
I attach the 3dm file with the named curves I want to use.
Here below the script that I wrote.
import rhinoscriptsyntax as rs
imp
rairails ls = rs.ObjectsByName(“rail01”, “rail02”, True)
if if rails and len(rails)==2:
shapes = rs.ObjectsByName(“curva01”, “curva02”, True)
if shapes: rs.AddSweep2(rails, shapes)