I wanted to use both side offset in rhino python coding . I have added 2 offsets as of now,one with positive distance and another with a negative distance .I have also added the corner style,but unable to add the end type (Straight) to the 2 offsets so as to join them.Would be great you could please help me with this.
Below is the code
crvID=rs.GetObject(“Select curve to offset 2 sides”,4,preselect=True)
if not crvID: return
if dist == None: return
plane = rs.CurvePlane(crvID)
if not plane: plane = rs.ViewCPlane()
msg="Offset 2 sides failed!"
do first offset positive distance
#do second offset negative distance
if len(offset1)== 1 and len(offset2)==1:
msg="Successfully offset one curve both sides"