|
Draft Polygon
|
| Menu location
|
Drafting → Многоъгълник 2D Drafting → Polygon
|
| Workbenches
|
| Чертожна маса, BIM
|
| Default shortcut
|
| P G
|
| Introduced in version
|
| 0.7
|
| See also
|
| None
|
|
Описание
Командата
Многоъгълник (Draft Polygon) създава правилен многоъгълник върху текущата working plane от център и радиус. Радиусът може да бъде определен чрез избиране на точка.
Многоъгълникът от чертожната работна маса може да бъде превключван между вписан и описан режим чрез промяна на свойството му ДанниDraw Mode. Ъглите на на многоъгълника могат да бъдат заоблени или скосени, като се промени съответно неговия ДанниFillet Radius или ДанниChamfer Size.
Правилен многоъгълник, дефиниран от две точки, център и радиус
Използване
Вижте също: Draft Tray, Draft Snap and Draft Constrain.
- There are several ways to invoke the command:
- Press the
Polygon button.
- Draft: Select the Drafting →
Polygon option from the menu.
- BIM: Select the 2D Drafting →
Polygon option from the menu.
- Use the keyboard shortcut: P then G.
- The Polygon task panel opens. See Options for more information.
- Adjust the desired number of Sides.
- Pick the first point, the center of the polygon, in the 3D View, or type coordinates and press the
Enter Point button.
- Pick the second point in the 3D View, or enter a Radius.
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 Enter after each. Or you can press the
Enter Point button when you have the desired values. It is advisable to move the pointer out of the 3D View before entering coordinates.
- Typing a value into any input field locks that field automatically: a lock icon appears in the spinbox and the 3D cursor no longer updates that value. Locked fields also constrain the cursor in the 3D view. Click the lock icon, double-click the field, or clear the value to unlock it. introduced in 26.3
- Press G or click the Global 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 F or click the Filled1.0 and below or Make faceintroduced in 1.1 checkbox to toggle make face mode. If make face mode is on, the created polygon will have ДанниMake Face set to
true and have a filled face.
- Press N or click the Continue checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating polygons.
- Press S to switch Draft snapping on or off.
- Press Esc or the Close button to abort the command.
Notes
- A Draft Polygon can be edited with the Draft Edit command.
Preferences
See also: Preferences Editor and Draft Preferences.
- If the Edit → Preferences → Draft → General → Create Part primitives if possible option is checked, the command will create a Part RegularPolygon instead of a Draft Polygon.
Properties
See also: Property View.
A Draft Polygon object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:
Data
Draft
- ДанниArea (
Area): (read-only) specifies the area of the face of the polygon. The value will be 0.0 if ДанниMake Face if false.
- ДанниChamfer Size (
Length): specifies the length of the chamfers at the corners of the polygon.
- ДанниDraw Mode (
Enumeration): specifies if the polygon is inscribed in a circle or circumscribed around a circle.
- ДанниFaces Number (
Integer): specifies the number of sides of the polygon.
- ДанниFillet Radius (
Length): specifies the radius of the fillets at the corners of the polygon.
- ДанниMake Face (
Bool): specifies if the polygon makes a face or not. If it is true a face is created, otherwise only the perimeter is considered part of the object.
- ДанниRadius (
Length): specifies the radius of the circle that defines the polygon.
View
Draft
- ВидPattern (
Enumeration): specifies the Draft Pattern with which to fill the face of the polygon. This property only works if ДанниMake Face is true and if ВидDisplay Mode is Flat Lines.
- ВидPattern Size (
Float): specifies the size of the Draft Pattern.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a Draft Polygon use the make_polygon method of the Draft module.
polygon = make_polygon(nfaces, radius=1, inscribed=True, placement=None, face=None, support=None)
- Creates a
polygon object with the given number of faces (nfaces), and based on a circle of radius in millimeters.
- If
inscribed is True, the polygon is inscribed in the circle, otherwise it will be circumscribed.
- If
placement is None the polygon is created at the origin and one of its vertices will lie on the X axis.
- If
face is True, the polygon will make a face, that is, it will appear filled.
Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
polygon1 = Draft.make_polygon(4, radius=500)
polygon2 = Draft.make_polygon(5, radius=750)
zaxis = App.Vector(0, 0, 1)
p3 = App.Vector(1000, 1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 90))
Polygon3 = Draft.make_polygon(6, radius=1450, placement=place3)
doc.recompute()
Draft
- Drafting: Line, Polyline, Fillet, Arc, Arc From 3 Points, Circle, Ellipse, Rectangle, Polygon, B-Spline, Cubic Bézier Curve, Bézier Curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation Styles, Annotation Scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar Array, Circular Array, Path Array, Path Link Array, Point Array, Point Link Array, Twisted Path Array, Twisted Path Link Array, Edit, Highlight Subelements, Join, Split, Upgrade, Downgrade, Convert Wire/B-Spline, Draft to Sketch, Set Slope, Flip Dimension, Shape 2D View, Force 2D View Update
- Draft Tray: Working Plane, Set Style, Toggle Construction Mode, AutoGroup
- Snapping: Snap Lock, Snap Endpoint, Snap Midpoint, Snap Center, Snap Angle, Snap Intersection, Snap Perpendicular, Snap Extension, Snap Parallel, Snap Special, Snap Near, Snap Ortho, Snap Grid, Snap Working Plane, Snap Dimensions, Toggle Grid
- Miscellaneous: Apply Current Style, New Layer, Manage Layers, New Named Group, SelectGroup, Add to Layer, Add to Group, Add to Construction Group, Toggle Wireframe, Working Plane Proxy, Heal, Show Snap Toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework