Draft Rectangle

Description
The Draft Rectangle command creates a rectangle in the current working plane from two points.

The corners of a Draft Rectangle can be filleted (rounded) or chamfered by changing its or  respectively. It is also possible to subdivide a Draft Rectangle by changing its and/or  property.



Usage
See also: Draft Tray, Draft Snap and Draft Constrain.


 * 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) The  task panel opens. See Options for more information.
 * 6) Pick the first point in the 3D view, or type coordinates and press the  button.
 * 7) Pick the second 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.

Options
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.


 * To manually enter coordinates enter the X, Y and Z component, and press after each. Or you can press the  button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
 * 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 point, else they are relative to the coordinate system origin.
 * Press or click the  checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the working plane coordinate system.
 * Press or click the  checkbox to toggle filled mode. If filled mode is on, the created rectangle will have  set to  and will have a filled face.
 * Press or click the  checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating rectangles.
 * Press to switch Draft snapping on or off.
 * Press or the  button to abort the command.

Preferences
See also: Preferences Editor and Draft Preferences.


 * The initial value of filled mode can be changed: . Changing the filled mode in a task panel will override this preference for the current FreeCAD session.
 * If the option is checked, the command will create a Part Plane instead of a Draft Rectangle.

Properties
See also: Property editor.

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 of the 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 rectangle is created at the origin and the length will be parallel to the X axis.
 * If is, the rectangle will make a face, that is, it will appear filled.

Example: