AddRectangle

Adds a rectangular curve to the document.

Syntax

rhinoscriptsyntax.AddRectangle ( plane, width, height )

rhinoscript.curve.AddRectangle ( plane, width, height )

Parameters

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.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

plane = rs.WorldXYPlane()

plane = rs.RotatePlane(plane, 45.0, [0,0,1])

rs.AddRectangle( plane, 5.0, 15.0 )

Also See