Adds a rectangular curve to the document.
rhinoscriptsyntax.AddRectangle ( plane, width, height )
rhinoscript.curve.AddRectangle ( plane, width, height )
plane |
The plane on which the rectangle will lie. |
width |
Width of the rectangle as measured along the plane's x-axis. |
height |
Height of the rectangle as measured along the plane's y-axis. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
plane = rs.WorldXYPlane()
plane = rs.RotatePlane(plane, 45.0, [0,0,1])
rs.AddRectangle( plane, 5.0, 15.0 )