Part Primitives/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Caption|Формы примитивов которые можно создать в верстаке Part(Деталь).}}")
(Updating to match new version of source page)
 
(23 intermediate revisions by 3 users not shown)
Line 4: Line 4:
|[[Part_Tube/ru|Труба]]
|[[Part_Tube/ru|Труба]]
|[[Part_Plane/ru|Плоскость]]
|[[Part_Plane/ru|Плоскость]]
|[[Part_Module/ru|Part(Деталь)]]
|[[Part_Workbench/ru|Part(Деталь)]]
|IconL=Part_Tube.svg
|IconL=Part_Tube.svg
|IconR=Part_Plane.svg
|IconR=Part_Plane.svg
Line 10: Line 10:
}}
}}


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


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


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


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


== Usage ==
<span id="Usage"></span>
== Применение ==


=== Create ===
To create a primitive, either
#* press the {{Button|[[Image:Part_Primitives.svg|24px]] '''Create primitives'''}} button in the toolbar.
#* select the {{MenuCommand|Part → Create primitives...}} from the menu bar.
# In the appearing dialog select primitive type, set its parameters and location, finally press {{Button|Create}}
The dialog keeps open so that you can subsequently create further primitives.


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


=== Edit ===
Using the dialog: {{Version|0.19}}
# Select the primitive in the tree and double-click on it.
# The same dialog will open that was also used to create the primitive. Change there the parameters and you get a live preview of the changed primitive.
# To finish the editing press {{Button|OK}}.


<div class="mw-translate-fuzzy">
Using the [[Property_editor|property editor]]:
Используя диалоговое окно: {{Version/ru|0.19}}
# Select the primitive in the tree.
# Выберите примитив в древе проекта и сделайте по нему двойной щелчок мышью.
# Edits its properties in the Properties table.
# Откроется тоже диалоговое окно, что и при создании примитива. Изменяйте параметры, и вы получите мгновенный предварительный просмотр изменённого примитива.
# Для завершения редактирования нажмите {{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.

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


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


== Notes ==
The following primitives can be created:
*[[Image:Part_Plane.svg|32px]] [[Part_Plane|Plane]]: Creates a plane.
*[[Image:Tree_Part_Box_Parametric.svg|32px]] [[Part_Box|Box]]: Creates a box. This object can also be created with the [[Image:Part_Box.svg|32px]] [[Part_Box|Box]] tool.
*[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder|Cylinder]]: Creates a cylinder. This object can also be created with the [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder|Cylinder]] tool.
*[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone|Cone]]: Creates a cone. This object can also be created with the [[Image:Part_Cone.svg|32px]] [[Part_Cone|Cone]] tool.
*[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere|Sphere]]: Creates a sphere. This object can also be created with the [[Image:Part_Sphere.svg|32px]] [[Part_Sphere|Sphere]] tool.
*[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid|Ellipsoid]]: Creates a ellipsoid.
*[[Image:Tree_Part_Torus_Parametric.svg|32px]] [[Part_Torus|Torus]]: Creates a torus. This object can also be created with the [[Image:Part_Torus.svg|32px]] [[Part_Torus|Torus]] tool.
*[[Image:Part_Prism.svg|32px]] [[Part_Prism|Prism]]: Creates a prism.
*[[Image:Part_Wedge.svg|32px]] [[Part_Wedge|Wedge]]: Creates a wedge.
*[[Image:Part_Helix.svg|32px]] [[Part_Helix|Helix]]: Creates a helix.
*[[Image:Part_Spiral.svg|32px]] [[Part_Spiral|Spiral]]: Creates a spiral.
*[[Image:Part_Circle.svg|32px]] [[Part_Circle|Circle]]: Creates a circular edge.
*[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse|Ellipse]]: Creates an elliptical edge.
*[[Image:Part_Point.svg|32px]] [[Part_Point|Point]]: Creates a point (vertex).
*[[Image:Part_Line.svg|32px]] [[Part_Line|Line]]: Creates a line (edge).
*[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon|Regular Polygon]]: Creates a regular polygon.


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


<span id="Scripting"></span>
{{Emphasis|See also:}} [[Part_scripting|Part scripting]]
== Программирование ==


See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
Test the creation of the primitives with a script. {{Version|0.19}}

<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 94: 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
Line 105: Line 114:




{{Docnav
{{Docnav/ru
|[[Part_Tube|Tube]]
|[[Part_Tube/ru|Труба]]
|[[Part_Plane|Plane]]
|[[Part_Plane/ru|Плоскость]]
|[[Part_Module|Part]]
|[[Part_Workbench/ru|Верстак Part]]
|IconL=Part_Tube.svg
|IconL=Part_Tube.svg
|IconR=Part_Plane.svg
|IconR=Part_Plane.svg
Line 114: Line 123:
}}
}}


{{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