Draft Polygon

Description
The Draft Polygon command creates a regular polygon in the current working plane from a center and a radius. The radius can be defined by picking a point.

A Draft Polygon can be switched from inscribed to circumscribed by changing its property. The corners of a Draft Polygon can be filleted (rounded) or chamfered by changing its or  respectively.



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) Adjust the desired number of.
 * 7) Pick the first point, the center of the polygon, in the 3D view, or type coordinates and press the  button.
 * 8) Pick the second point in the 3D view, or enter a.

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 the coordinates for the center 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 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 polygon 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 polygons.
 * Press to switch Draft snapping on or off.
 * Press or the  button to abort the command.

Preferences
See also: Preferences Editor and Draft Preferences.


 * To change the number of decimals used for the input of coordinates and radii:.
 * To change the initial value of filled mode: . 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 RegularPolygon instead of a Draft Polygon.

Properties
See also: Property editor.

A Draft Polygon 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 polygon. The value will be if  if.
 * : specifies the length of the chamfers at the corners of the polygon.
 * : specifies if the polygon is in a circle or  around a circle.
 * : specifies the number of sides of the polygon.
 * : specifies the radius of the fillets at the corners of the polygon.
 * : specifies if the polygon makes a face or not. If it is a face is created, otherwise only the perimeter is considered part of the object.
 * : specifies the radius of the circle that defines the polygon.

View

 * : specifies the Draft Pattern with which to fill the face of the polygon. This property only works if is  and if  is.
 * : specifies the size of the Draft Pattern.

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

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


 * Creates a object with the given number of faces, and based on a circle of  in millimeters.
 * If is, the polygon is inscribed in the circle, otherwise it will be circumscribed.
 * If is  the polygon is created at the origin and one of its vertices will lie on the X axis.
 * If is, the polygon will make a face, that is, it will appear filled.

Example: