Draft Rectangle

Description
The Draft Rectangle command creates a rectangle by picking two points. It uses the Draft Linestyle set on the Draft Tray.



Usage

 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) * Use the keyboard shortcut: then.
 * 5) Click the first corner point in the 3D view, or type coordinates and press the  button.
 * 6) Click the opposite corner point in the 3D view, or type coordinates and press the  button. This point must not be constrained to the X, Y, or Z axis, or the resulting rectangle will be malformed.

Options

 * To enter coordinates manually, simply enter the numbers, then press between each X, Y and Z component. You can press the  button when you have the desired values to insert the point.
 * Press or click the checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first one; if not, they are absolute, taken from the origin (0,0,0).
 * Press or click the checkbox to toggle continue mode. If continue mode is on, the Rectangle command will restart after you give the second point, allowing you to draw another rectangle without pressing the command button again.
 * Press or click the checkbox to toggle filled mode. If filled mode is on, the rectangle will create a filled face ; if not, the rectangle will not make a face.
 * Hold while drawing to force snapping your point to the nearest snap location, independently of the distance.
 * Press or the  button to abort the current command.

Properties
A Draft Rectangle object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:

Data

 * : (read-only) specifies the area of the face of the rectangle. The value will be if  if.
 * : specifies the length of the chamfers at the corners of the rectangle.
 * : specifies the number of equal-sized columns in which the rectangle is divided.
 * : specifies the radius of the fillets at the corners of the rectangle.
 * : specifies the height of the rectangle.
 * : specifies the length of the rectangle.
 * : specifies if the rectangle makes a face or not. If it is a face is created, otherwise only the perimeter is considered part of the object.
 * : specifies the number of equal-sized rows in which the rectangle is divided.

View

 * : specifies the Draft Pattern with which to fill the face of the rectangle. This property only works if is, and if  is.
 * : specifies the size of the Draft Pattern.
 * : specifies the path to an image file to be mapped onto the face of the rectangle. Blanking this property will remove the image. The rectangle should have the same proportions as the image to avoid distortions.

Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Rectangle use the method  of the Draft module. This method replaces the deprecated method.


 * Creates a object with  in the X direction and  in the Y direction, with units in millimeters.
 * If is  the shape is created at the origin and the length will be parallel to the X axis.
 * If is, the shape will make a face, that is, it will appear filled.

Example: