Draft Polygon/bg

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.

  1. 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.
  2. The Polygon task panel opens. See Options for more information.
  3. Adjust the desired number of Sides.
  4. Pick the first point, the center of the polygon, in the 3D View, or type coordinates and press the Enter Point button.
  5. 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.

Notes

Preferences

See also: Preferences Editor and Draft Preferences.

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

View

Draft

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)

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()