Draft Polygon/ru: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|[[Draft_Rectangle|Rectangle]] |
|[[Draft_Rectangle|Rectangle]] |
||
|[[Draft_BSpline|BSpline]] |
|[[Draft_BSpline|BSpline]] |
||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL=Draft_Rectangle.svg |
|IconL=Draft_Rectangle.svg |
||
|IconR=Draft_BSpline.svg |
|IconR=Draft_BSpline.svg |
||
Line 14: | Line 14: | ||
|Name=Draft Polygon |
|Name=Draft Polygon |
||
|Name/ru=Draft Polygon |
|Name/ru=Draft Polygon |
||
⚫ | |||
|MenuLocation=Черчение -> Многоугольник |
|MenuLocation=Черчение -> Многоугольник |
||
⚫ | |||
|Shortcut=P G |
|Shortcut={{KEY|P}} {{KEY|G}} |
||
}} |
}} |
||
</div> |
</div> |
||
Line 22: | Line 22: | ||
==Description== |
==Description== |
||
The [[Image:Draft_Polygon.svg|24px]] '''Draft Polygon''' command creates a regular polygon |
The [[Image:Draft_Polygon.svg|24px]] '''Draft Polygon''' command creates a regular polygon on the current [[Draft_SelectPlane|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 {{PropertyData|Draw Mode}} property. |
A Draft Polygon can be switched from inscribed to circumscribed by changing its {{PropertyData|Draw Mode}} property. The corners of a Draft Polygon can be filleted (rounded) or chamfered by changing its {{PropertyData|Fillet Radius}} or {{PropertyData|Chamfer Size}} respectively. |
||
[[Image:Draft_polygon_example.jpg|400px]] |
[[Image:Draft_polygon_example.jpg|400px]] |
||
Line 34: | Line 34: | ||
# There are several ways to invoke the command: |
# There are several ways to invoke the command: |
||
#* Press the {{Button|[[Image:Draft_Polygon.svg|16px]] [[Draft_Polygon| |
#* Press the {{Button|[[Image:Draft_Polygon.svg|16px]] [[Draft_Polygon|Polygon]]}} button. |
||
#* Select the {{MenuCommand|Drafting → [[Image:Draft_Polygon.svg|16px]] Polygon}} option from the menu. |
#* Select the {{MenuCommand|Drafting → [[Image:Draft_Polygon.svg|16px]] Polygon}} option from the menu. |
||
#* Use the keyboard shortcut: {{KEY|P}} then {{KEY|G}}. |
#* Use the keyboard shortcut: {{KEY|P}} then {{KEY|G}}. |
||
# The {{MenuCommand|Polygon}} task panel opens. See [[#Options|Options]] for more information. |
# The {{MenuCommand|Polygon}} task panel opens. See [[#Options|Options]] for more information. |
||
# Adjust the desired number of {{MenuCommand|Sides}}. |
# Adjust the desired number of {{MenuCommand|Sides}}. |
||
# Pick the first point, the center of the polygon, in the [[3D_view|3D view]], or type |
# Pick the first point, the center of the polygon, in the [[3D_view|3D view]], or type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button. |
||
# Pick the second point in the [[3D_view|3D view]], or enter a {{MenuCommand|Radius}}. |
# Pick the second point in the [[3D_view|3D view]], or enter a {{MenuCommand|Radius}}. |
||
==Options== |
==Options== |
||
The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts. |
The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts (for version 0.22). |
||
* To manually enter the coordinates for the center enter the X, Y and Z component, and press {{KEY|Enter}} after each. Or you can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values. It is advisable to move the pointer out of the [[3D_view|3D view]] before entering coordinates. |
* To manually enter the coordinates for the center enter the X, Y and Z component, and press {{KEY|Enter}} after each. Or you can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values. It is advisable to move the pointer out of the [[3D_view|3D view]] before entering coordinates. |
||
* The {{MenuCommand|Relative}} checkbox has no purpose for this command. |
|||
* Press {{KEY|G}} or click the {{MenuCommand|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 [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}} |
* Press {{KEY|G}} or click the {{MenuCommand|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 [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}} |
||
* Press {{KEY| |
* Press {{KEY|F}} or click the {{MenuCommand|Filled}} checkbox to toggle filled mode. If filled mode is on, the created polygon will have {{PropertyData|Make Face}} set to {{TRUE}} and will have a filled face. |
||
* Press {{KEY| |
* Press {{KEY|N}} or click the {{MenuCommand|Continue}} checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating polygons. |
||
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off. |
|||
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command. |
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command. |
||
Line 56: | Line 56: | ||
* A Draft Polygon can be edited with the [[Draft_Edit|Draft Edit]] command. |
* A Draft Polygon can be edited with the [[Draft_Edit|Draft Edit]] command. |
||
⚫ | * If the {{MenuCommand|Edit → Preferences... → Draft → General |
||
==Preferences== |
|||
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]]. |
|||
⚫ | |||
==Properties== |
==Properties== |
||
See also: [[ |
See also: [[Property_editor|Property editor]]. |
||
A Draft Polygon object is derived from a [[Part_Part2DObject|Part Part2DObject]] and inherits all its properties. It also has the following additional properties: |
A Draft Polygon object is derived from a [[Part_Part2DObject|Part Part2DObject]] and inherits all its properties. It also has the following additional properties: |
||
Line 85: | Line 90: | ||
==Scripting== |
==Scripting== |
||
See also: [https:// |
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
||
To create a Draft Polygon use the {{incode|make_polygon}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makePolygon}} method. |
To create a Draft Polygon use the {{incode|make_polygon}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makePolygon}} method. |
||
Line 120: | Line 125: | ||
|[[Draft_Rectangle|Rectangle]] |
|[[Draft_Rectangle|Rectangle]] |
||
|[[Draft_BSpline|BSpline]] |
|[[Draft_BSpline|BSpline]] |
||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL=Draft_Rectangle.svg |
|IconL=Draft_Rectangle.svg |
||
|IconR=Draft_BSpline.svg |
|IconR=Draft_BSpline.svg |
Latest revision as of 10:07, 30 January 2024
Draft Polygon |
Системное название |
---|
Draft Polygon |
Расположение в меню |
Черчение -> Многоугольник |
Верстаки |
Draft, Arch |
Быстрые клавиши |
P G |
Представлено в версии |
- |
См. также |
Нет |
Description
The Draft Polygon command creates a regular polygon on 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 ДанныеDraw Mode property. The corners of a Draft Polygon can be filleted (rounded) or chamfered by changing its ДанныеFillet Radius or ДанныеChamfer Size respectively.
Regular polygon defined by two points, center and radius
Usage
See also: Draft Tray, Draft Snap and Draft Constrain.
- There are several ways to invoke the command:
- Press the Polygon button.
- Select the 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 (for version 0.22).
- 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.
- 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. introduced in version 0.20
- Press F or click the Filled checkbox to toggle filled mode. If filled mode is on, the created polygon will have ДанныеMake Face set to
true
and will 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 editor.
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 be0.0
if ДанныеMake Face iffalse
. - ДанныеChamfer Size (
Length
): specifies the length of the chamfers at the corners of the polygon. - ДанныеDraw Mode (
Enumeration
): specifies if the polygon isinscribed
in a circle orcircumscribed
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 istrue
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 istrue
and if ВидDisplay Mode isFlat 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 (introduced in version 0.19) of the Draft module. This method replaces the deprecated makePolygon
method.
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 ofradius
in millimeters. - If
inscribed
isTrue
, the polygon is inscribed in the circle, otherwise it will be circumscribed. - If
placement
isNone
the polygon is created at the origin and one of its vertices will lie on the X axis. - If
face
isTrue
, 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()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 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, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select 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, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework