Hi there,
I’m very new to python scripting and I haven’t had a lot of time to get to learn it.
I’m trying to add circles to the corners of a rectangle but I’d like to be able to do it without the user having to pick any more points from rhino.
I’ve tried using PolylineVertices but don’t know how to get the AddCircle syntax to understand the data, is there a middle step I need to be doing?
import rhinoscriptsyntax as rs
point1 = rs.GetPoint("Click First corner of rectangle")
point2 = rs.GetPoint("Click Second corner of rectangle")
point3 = rs.GetPoint("Click Third corner of rectangle")
plane = rs.PlaneFromPoints(point1, point2, point3)
baserectangle = rs.AddRectangle(plane, point1, point3)
offsetrectangle = rs.OffsetCurve(baserectangle, [0,0,0], 0.5)
rs.DeleteObject(baserectangle)
vertices = rs.PolylineVertices(offsetrectangle)```
5 posts - 3 participants