@Rickson wrote:
i’ve tried coercing, making a different list, all sorts of things yet still get this error.
Message: iteration over non-sequence of type Guid
import rhinoscriptsyntax as rs surface = rs.GetObject("Select Surface",8) curve = rs.GetObject("Select curve", 4) #offset = rs.GetReal("Offset Amount") #offsetX = rs.GetInteger("How many") offset = 2 offsetX = 3 count = 1 for eachint in range(offsetX): offing = rs.OffsetCurveOnSurface(curve,surface,(offset * count)) count += 1 if offing: extC = rs.ExtendCurve(offing, 0, 2, surface)AND
import rhinoscriptsyntax as rs surface = rs.GetObject("Select Surface",8) curve = rs.GetObject("Select curve", 4) #offset = rs.GetReal("Offset Amount") #offsetX = rs.GetInteger("How many") offset = 2 offsetX = 3 count = 1 curves = [] for eachint in range(offsetX): offing = rs.OffsetCurveOnSurface(curve,surface,(offset * count)) count += 1 for excurve in curves: print (excurve) curveid = rs.coercecurve(excurve[0]) extendC = rs.ExtendCurve(curveid, 0 ,2, surface)
Posts: 1
Participants: 1