Part Primitives/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav/ru
|[[Part_Torus|Torus]]
|[[Part_Tube/ru|Труба]]
|[[Part_Builder|Shapebuilder]]
|[[Part_Plane/ru|Плоскость]]
|[[Part_Module|Part]]
|[[Part_Workbench/ru|Part(Деталь)]]
|IconL=Part_Torus.svg
|IconL=Part_Tube.svg
|IconR=Part_Plane.svg
|IconC=Workbench_Part.svg
|IconC=Workbench_Part.svg
|IconR=Part_Shapebuilder.svg
}}
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name=Part CreatePrimitives
|Name=Part Primitives
|Name/ru=Создать примитивы
|Name/ru=Создать примитивы
|MenuLocation=Деталь -> Создать примитивы...
|MenuLocation=Деталь -> Создать примитивы...
||Workbenches=[[Part_Module/ru|Part]]
||Workbenches=[[Part_Workbench/ru|Part(Деталь)]]
|SeeAlso=[[Part_Shapebuilder/ru|Построитель форм]]
|SeeAlso=[[Part_Builder/ru|Построитель форм]]
}}
}}
</div>
</div>


==Description==
<span id="Description"></span>
==Описание==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Инструмент для создания геометрических параметризованных примитивов.
Инструмент [[Part_Primitives/ru|Создать примитивы]] запускает диалог создания разнообразных геометрических параметризованных примитивов [[Image:Workbench_Part.svg|24px|link=Part_Workbench/ru]] [[Part_Workbench/ru|Верстака Part]].
</div>
</div>


[[File:Part_Primitives_example.png|800px]]
[[File:Part_Primitives_example.png|600px]]
<div class="mw-translate-fuzzy">
{{Caption|Primitive shapes that can be created with the [[Part_Workbench|Part Workbench]].}}
{{Caption|Формы примитивов которые можно создать в [[Part_Workbench/ru|верстаке Part(Деталь)]].}}
</div>


<span id="Usage"></span>
*В настоящее время этот инструмент может создать параметрические:
== Применение ==
**[[Part_Plane/ru|Плоскость]]
**[[Part_Box/ru|Куб]]
**[[Part_Cylinder/ru|Цилиндр]]
**[[Part_Cone/ru|Конус]]
**[[Part_Sphere/ru|Сфера]]
**[[Part_Ellipsoid/ru|Эллипсоид]]
**[[Part_Torus/ru|Тор]]
**[[Part_Prism/ru|Призма]] {{Version|0.14}}*:
**[[Part_Wedge/ru|Клин]]
**[[Part_Helix/ru|Спираль (винт)]]
**[[Part_Spiral/ru|Спираль]] {{Version|0.14}}*:
**[[Part_Circle/ru|Окружность]]
**[[Part_Ellipse/ru|Эллипс]]
**[[Part_Line/ru|Линия]] (Грань)
**[[Part_Point/ru|Точка]] (Вершина)
**[[Part_RegularPolygon/ru|Правильный многоугольник]] {{Version|0.14}}*:


=== Create ===
Some of the available (parametric) geometric primitives that are possible:
:[[Image:Part_Plane.svg|32px]] [[Part_Plane|Plane]]: inserts a simple parametric plane 10 x 10 mm, with the parameters of position, length, and width.
:[[Image:Tree_Part_Box_Parametric.svg|32px]] [[Part_Box|Box/Cube]]: inserts a parametric, [http://en.wikipedia.org/wiki/Cuboid#Rectangular_cuboid rectangular cuboid], geometric primitive into the active document.
:[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder|Cylinder]]: Inserts a simple parametric cylinder, with position, angle, radius and height parameters in to he active document.
:[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone|Cone]]: Inserts a parametric truncated Cone in to the active document.
:[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere|Sphere]]: Inserts a parametric sphere, with position, angle1, angle2, angle3 and radius parameters.
:[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid|Ellipsoid]]: Inserts a parametric Ellipsoid solid in to the active document.
:[[Image:Tree_Part_Torus_Parametric.svg|32px]] [[Part_Torus|Torus]]: Inserts a simple parametric torus, with position, angle1, angle2, angle3, radius1 and radius2 as parameters in to the active document.
:[[Image:Part_Prism.svg|32px]] [[Part_Prism|Prism]]: Inserts a solid defined by a regular polygon cross section and a height in to the active document. {{Version|0.14}}
:[[Image:Part_Wedge.svg|32px]] [[Part_Wedge|Wedge]]: Inserts a parametric Wedge object in to the active document.
:[[Image:Part_Helix.svg|32px]] [[Part_Helix|Helix]]: Inserts a Helix geometric primitive in to the active document. Common usage for Helix is creating [[Thread_for_Screw_Tutorial|threads]].
:[[Image:Part_Spiral.svg|32px]] [[Part_Spiral|Spiral]]: Inserts a Spiral geometric primitive in to the active workbench. {{Version|0.14}}
:[[Image:Part_Circle.svg|32px]] [[Part_Circle|Circle]]: Inserts a circular curved edge in to the active document.
:[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse|Ellipse]]: Inserts an elliptical curved edge in to the active document.
:[[Image:Part_Point.svg|32px]] [[Part_Point|Point]] (Vertex): Inserts a Point (vertex) geometric primitive in to the active document.
:[[Image:Part_Line.svg|32px]] [[Part_Line|Line]] (Edge): creates a simple line segment delimited by two vertices.
:[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon|Regular Polygon]]: Inserts a RegularPolygon geometric primitive in to the active document. {{Version|0.14}}


<div class="mw-translate-fuzzy">
== Inheritance ==
Примитивы можно создать следующими способами
#* нажмите кнопку {{Button|[[Image:Part_Primitives.svg|24px]] '''Создание примитивов'''}} на панели инструментов.
#* перейдите {{MenuCommand|Деталь → Создать примитивы...}} в панели меню.
# В появившемся диалоговом окне выберите тип примитива, задайте его параметры и местоположение, наконец нажмите кнопку {{Button|Создать}}
Диалог остаётся открытым, чтобы впоследствии вы могли создать дополнительные примитивы.
</div>


=== Edit ===
All part primitives are objects which derive from the {{incode|Part::Primitive}} class. This class in turn derives from the basic [[Part_Feature|Part Feature]] object ({{incode|Part::Feature}} class).


<div class="mw-translate-fuzzy">
[[File:FreeCAD_core_objects.svg|800px]]
Используя диалоговое окно: {{Version/ru|0.19}}
# Выберите примитив в древе проекта и сделайте по нему двойной щелчок мышью.
# Откроется тоже диалоговое окно, что и при создании примитива. Изменяйте параметры, и вы получите мгновенный предварительный просмотр изменённого примитива.
# Для завершения редактирования нажмите {{Button|OK}}.
</div>


The properties of a Part Primitive can also be changed in the [[Property_editor|Property editor]], and its {{PropertyData|Placement}} can also be changed with the [[Image:Std_TransformManip.svg|16px]] [[Std_TransformManip|Std TransformManip]] command.
{{Caption|Simplified diagram of the relationships between the core objects in the program. The {{incode|Part::Primitive}} class is derived from the {{incode|Part::Feature}} object. It includes an extension that allows it to be attached to faces and planes.}}


<span id="Geometric_Primitives"></span>
== Scripting ==
== Геометрические Примитивы ==


<div class="mw-translate-fuzzy">
{{Emphasis|See also:}} [[Part_scripting|Part scripting]]
Можно создать следующие примитивы:
*[[Image:Part_Plane.svg|32px]] [[Part_Plane/ru|Плоскость]]: Создаёт плоскость.
*[[Image:Tree_Part_Box_Parametric.svg|32px]] [[Part_Box/ru|Куб]]: Создаёт куб. Этот объект также может быть создан с помощью инструмента [[Image:Part_Box.svg|32px]] [[Part_Box/ru|Куб]].
*[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder/ru|Цилиндр]]: Создаёт цилиндр. Этот объект также может быть создан с помощью инструмента [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder/ru|Цилиндр]].
*[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone/ru|Конус]]: Создаёт конус. Этот объект также может быть создан с помощью инструмента [[Image:Part_Cone.svg|32px]] [[Part_Cone/ru|Конус]].
*[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere/ru|Сфера]]: Создаёт сферу. Этот объект также может быть создан с помощью инструмента [[Image:Part_Sphere.svg|32px]] [[Part_Sphere/ru|Сфера]].
*[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid/ru|Эллипсоид]]: Создаёт эллипсоид.
*[[Image:Tree_Part_Torus_Parametric.svg|32px]] [[Part_Torus/ru|Тор]]: Создаёт тор. Этот объект также может быть создан с помощью инструмента [[Image:Part_Torus.svg|32px]] [[Part_Torus/ru|Тор]].
*[[Image:Part_Prism.svg|32px]] [[Part_Prism/ru|Призма]]: Создаёт призму.
*[[Image:Part_Wedge.svg|32px]] [[Part_Wedge/ru|Клин]]: Создаёт клин.
*[[Image:Part_Helix.svg|32px]] [[Part_Helix/ru|Винтовая спираль(Helix)]]: Создаёт винтовую спираль.
*[[Image:Part_Spiral.svg|32px]] [[Part_Spiral/ru|Плоская спираль(Spiral)]]: Создаёт плоскую спираль.
*[[Image:Part_Circle.svg|32px]] [[Part_Circle/ru|Окружность]]: Создаёт круглое ребро.
*[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse/ru|Эллипс]]: Создаёт эллиптическое ребро.
*[[Image:Part_Point.svg|32px]] [[Part_Point/ru|Точка]]: Создаёт точку (вершину/vertex).
*[[Image:Part_Line.svg|32px]] [[Part_Line/ru|Линия]]: Создаёт линию (ребро).
*[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon/ru|Правильный Многоугольник]]: Создаёт правильный многоугольник.
</div>


== Notes ==
Test the creation of the primitives with a script. {{Version|0.19}}

* The Part Primitives command cannot create a [[Image:Part_Tube.svg|16px]] [[Part_Tube|Part Tube]].

<span id="Scripting"></span>
== Программирование ==

See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

<div class="mw-translate-fuzzy">
Протестируйте создание примитивов с помощью скрипта. {{Version/ru|0.19}}
</div>


This can be run from the [[Python_console|Python console]].
{{Code|code=
{{Code|code=
import parttests.part_test_objects as pto
import parttests.part_test_objects as pto
Line 84: Line 97:
}}
}}


<div class="mw-translate-fuzzy">
This script is located in the installation directory of the program, and can be examined to see how the basic primitives are built.
Этот скрипт расположен в каталоге установки программы, и может быть изучен, чтобы узнать, как строятся базовые примитивы.
</div>

{{Code|code=
{{Code|code=
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
}}
}}


<div class="mw-translate-fuzzy">
It can be used as input to the program as well.
Также он может быть использован в качестве входных данных для программы.
</div>

{{Code|code=
{{Code|code=
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
}}
}}



{{Docnav
{{Docnav/ru
|[[Part_Torus|Torus]]
|[[Part_Tube/ru|Труба]]
|[[Part_Builder|Shapebuilder]]
|[[Part_Plane/ru|Плоскость]]
|[[Part_Module|Part]]
|[[Part_Workbench/ru|Верстак Part]]
|IconL=Part_Torus.svg
|IconL=Part_Tube.svg
|IconR=Part_Plane.svg
|IconC=Workbench_Part.svg
|IconC=Workbench_Part.svg
|IconR=Part_Shapebuilder.svg
}}
}}


{{Part Tools navi{{#translation:}}}}
{{Part_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 11:47, 21 January 2023

Создать примитивы

Системное название
Part Primitives
Расположение в меню
Деталь -> Создать примитивы...
Верстаки
Part(Деталь)
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Построитель форм

Описание

Инструмент Создать примитивы запускает диалог создания разнообразных геометрических параметризованных примитивов Верстака Part.

Формы примитивов которые можно создать в верстаке Part(Деталь).

Применение

Create

Примитивы можно создать следующими способами

    • нажмите кнопку Создание примитивов на панели инструментов.
    • перейдите Деталь → Создать примитивы... в панели меню.
  1. В появившемся диалоговом окне выберите тип примитива, задайте его параметры и местоположение, наконец нажмите кнопку Создать

Диалог остаётся открытым, чтобы впоследствии вы могли создать дополнительные примитивы.

Edit

Используя диалоговое окно: представлено в версии 0.19

  1. Выберите примитив в древе проекта и сделайте по нему двойной щелчок мышью.
  2. Откроется тоже диалоговое окно, что и при создании примитива. Изменяйте параметры, и вы получите мгновенный предварительный просмотр изменённого примитива.
  3. Для завершения редактирования нажмите OK.

The properties of a Part Primitive can also be changed in the Property editor, and its ДанныеPlacement can also be changed with the Std TransformManip command.

Геометрические Примитивы

Можно создать следующие примитивы:

Notes

  • The Part Primitives command cannot create a Part Tube.

Программирование

See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.

Протестируйте создание примитивов с помощью скрипта. представлено в версии 0.19

import parttests.part_test_objects as pto
pto.create_test_file("example_file")

Этот скрипт расположен в каталоге установки программы, и может быть изучен, чтобы узнать, как строятся базовые примитивы.

$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py

Также он может быть использован в качестве входных данных для программы.

freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py