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.

Data

 * : specifies the length of the shape in the X axis direction.
 * : specifies the height of the shape in the Y axis direction.
 * : specifies the diagonal length of the 45&#176; chamfer at each corner of the rectangle.
 * : specifies the radius of the 90&#176; fillet at each corner of the rectangle.
 * : specifies the number of equal-sized rows in which the original shape is divided; by default, 1 row.
 * : specifies the number of equal-sized columns in which the original shape is divided; by default, 1 column.
 * : specifies if the shape makes a face or not. If it is a face is created, otherwise only the perimeter is considered part of the object.

View

 * : specifies a Draft Pattern with which to fill the face of the shape. This property only works if is, and if  is "Flat Lines".
 * : specifies the size of the Draft Pattern.
 * : specifies the path to an image file to be mapped on the face of the shape. The image will be appear distorted if its proportions do not match the rectangle. Blanking this property will remove the image.

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: