Draft Mirror/ru: Difference between revisions
(Created page with "{{Docnav/ru |Масштаб |Смещение |Верстак "Draft" |IconL=Draft_Scale.svg |IconR=Draft_Offset....") |
(Updating to match new version of source page) |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
|Name= |
|Name/ru=Отразить |
||
|Name |
|Name=Draft_Mirror |
||
|MenuLocation= |
|MenuLocation=Modification → Отразить |
||
|Workbenches=[[Draft_Workbench/ru|Draft]], [[Arch_Workbench/ru|Arch]] |
|Workbenches=[[Draft_Workbench/ru|Draft]], [[Arch_Workbench/ru|Arch]] |
||
|Shortcut={{KEY|M}} {{KEY|I}} |
|||
|SeeAlso=[[Draft Scale/ru|Draft Scale]] |
|||
|SeeAlso=[[Draft_Clone/ru|Клонировать]] |
|||
}} |
}} |
||
</div> |
|||
= |
<span id="Description"></span> |
||
==Описание== |
|||
The [[Image:Draft_Mirror.svg|24px]] '''Draft Mirror''' command creates mirrored copies, [[Part_Mirror|Part Mirror]] objects, from selected objects. A [[Part_Mirror|Part Mirror]] object is parametric, it will update if its source object changes. |
The [[Image:Draft_Mirror.svg|24px]] '''Draft Mirror''' command creates mirrored copies, [[Part_Mirror|Part Mirror]] objects, from selected objects. A [[Part_Mirror|Part Mirror]] object is parametric, it will update if its source object changes. |
||
Line 29: | Line 29: | ||
{{Caption|Mirroring an object}} |
{{Caption|Mirroring an object}} |
||
= |
<span id="Usage"></span> |
||
==Применение== |
|||
See also: [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]]. |
See also: [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]]. |
||
Line 35: | Line 36: | ||
# Optionally select one or more objects. |
# Optionally select one or more objects. |
||
# There are several ways to invoke the command: |
# There are several ways to invoke the command: |
||
#* Press the {{Button|[[Image:Draft_Mirror.svg|16px]] [[Draft_Mirror| |
#* Press the {{Button|[[Image:Draft_Mirror.svg|16px]] [[Draft_Mirror|Mirror]]}} button. |
||
#* Select the {{MenuCommand|Modification → [[Image:Draft_Mirror.svg|16px]] Mirror}} option from the menu. |
#* Select the {{MenuCommand|Modification → [[Image:Draft_Mirror.svg|16px]] Mirror}} option from the menu. |
||
#* Use the keyboard shortcut: {{KEY|M}} then {{KEY|I}}. |
#* Use the keyboard shortcut: {{KEY|M}} then {{KEY|I}}. |
||
Line 44: | Line 45: | ||
# The mirror plane is defined by the selected points and the normal of the [[Draft_SelectPlane|Draft working plane]]. |
# The mirror plane is defined by the selected points and the normal of the [[Draft_SelectPlane|Draft working plane]]. |
||
= |
<span id="Options"></span> |
||
==Опции== |
|||
The single character keyboard 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. |
||
* To manually enter coordinates 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 coordinates 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. |
||
* Press {{KEY|R}} or click the {{MenuCommand|Relative}} checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin. |
* Press {{KEY|R}} or click the {{MenuCommand|Relative}} checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin. |
||
* 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}} |
||
* The {{MenuCommand|Continue}} checkbox has no purpose for this command. |
|||
* The {{MenuCommand|Modify subelements}} checkbox has no purpose for this command. |
|||
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off. |
* 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. |
||
= |
<span id="Notes"></span> |
||
==Примечания== |
|||
* Mirrored copies of [[Draft_Line|Draft Lines]], [[Draft_Wire|Draft Wires]], [[Draft_Arc|Draft Arcs]] and [[Draft_Circle|Draft Circles]] can be turned into independent editable Draft objects by using [[Draft_Downgrade|Draft Downgrade]] and then [[Draft_Upgrade|Draft Upgrade]]. |
* Mirrored copies of [[Draft_Line|Draft Lines]], [[Draft_Wire|Draft Wires]], [[Draft_Arc|Draft Arcs]] and [[Draft_Circle|Draft Circles]] can be turned into independent editable Draft objects by using [[Draft_Downgrade|Draft Downgrade]] and then [[Draft_Upgrade|Draft Upgrade]]. |
||
* The [[Part_SimpleCopy|Part SimpleCopy]] command can be used to create a copy of a mirrored object that is not linked to its source object. |
* The [[Part_SimpleCopy|Part SimpleCopy]] command can be used to create a copy of a mirrored object that is not linked to its source object. |
||
<span id="Properties"></span> |
|||
==Preferences== |
|||
==Свойства== |
|||
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]]. |
|||
* To change the number of decimals used for the input of coordinates: {{MenuCommand|Edit → Preferences... → General → Units → Units settings → Number of decimals}}. |
|||
==Properties== |
|||
See also: [[property_editor|Property editor]]. |
See also: [[property_editor|Property editor]]. |
||
Line 73: | Line 69: | ||
A [[Part_Mirror|Part Mirror]] object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties: |
A [[Part_Mirror|Part Mirror]] object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties: |
||
= |
<span id="Data"></span> |
||
===Данные=== |
|||
{{TitleProperty| |
{{TitleProperty|Основные}} |
||
* {{PropertyData|Source|Link}}: specifies the object that is mirrored. |
* {{PropertyData|Source|Link}}: specifies the object that is mirrored. |
||
Line 84: | Line 81: | ||
* {{PropertyData|Normal|Vector}}: specifies the normal direction of the mirror plane. |
* {{PropertyData|Normal|Vector}}: specifies the normal direction of the mirror plane. |
||
= |
<span id="Scripting"></span> |
||
==Программирование== |
|||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
||
Line 100: | Line 98: | ||
* {{incode|mirrored_list}} is returned with the new {{incode|Part::Mirroring}} objects. It is either a single object or a list of objects, depending on {{incode|objlist}}. |
* {{incode|mirrored_list}} is returned with the new {{incode|Part::Mirroring}} objects. It is either a single object or a list of objects, depending on {{incode|objlist}}. |
||
Пример: |
|||
Example: |
|||
{{Code|code= |
{{Code|code= |
||
Line 125: | Line 123: | ||
{{Docnav |
{{Docnav/ru |
||
|[[Draft_Scale| |
|[[Draft_Scale/ru|Масштаб]] |
||
|[[Draft_Offset| |
|[[Draft_Offset/ru|Смещение]] |
||
|[[Draft_Workbench|Draft]] |
|[[Draft_Workbench/ru|Верстак "Draft"]] |
||
|IconL=Draft_Scale.svg |
|IconL=Draft_Scale.svg |
||
|IconR=Draft_Offset.svg |
|IconR=Draft_Offset.svg |
Latest revision as of 04:58, 9 January 2024
Отразить |
Системное название |
---|
Draft_Mirror |
Расположение в меню |
Modification → Отразить |
Верстаки |
Draft, Arch |
Быстрые клавиши |
M I |
Представлено в версии |
- |
См. также |
Клонировать |
Описание
The Draft Mirror command creates mirrored copies, Part Mirror objects, from selected objects. A Part Mirror object is parametric, it will update if its source object changes.
The command can be used on 2D objects created with the Draft Workbench or Sketcher Workbench, but also on many 3D objects such as those created with the Part Workbench, PartDesign Workbench or Arch Workbench.
Mirroring an object
Применение
See also: Draft Snap and Draft Constrain.
- Optionally select one or more objects.
- There are several ways to invoke the command:
- Press the Mirror button.
- Select the Modification → Mirror option from the menu.
- Use the keyboard shortcut: M then I.
- If you have not yet selected an object: select an object in the 3D view.
- The Mirror task panel opens. See Options for more information.
- Pick the first point of the mirror plane in the 3D view, or type coordinates and press the Enter point button.
- Pick the second point of the mirror plane in the 3D view, or type coordinates and press the Enter point button.
- The mirror plane is defined by the selected points and the normal of the Draft working plane.
Опции
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 coordinates 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 R or click the Relative checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin.
- 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 S to switch Draft snapping on or off.
- Press Esc or the Close button to abort the command.
Примечания
- Mirrored copies of Draft Lines, Draft Wires, Draft Arcs and Draft Circles can be turned into independent editable Draft objects by using Draft Downgrade and then Draft Upgrade.
- The Part SimpleCopy command can be used to create a copy of a mirrored object that is not linked to its source object.
Свойства
See also: Property editor.
A Part Mirror object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Данные
Основные
- ДанныеSource (
Link
): specifies the object that is mirrored.
Plane
- ДанныеBase (
Vector
): specifies the base point of the mirror plane. - ДанныеNormal (
Vector
): specifies the normal direction of the mirror plane.
Программирование
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To mirror objects use the mirror
method of the Draft module.
mirrored_list = mirror(objlist, p1, p2)
objlist
contains the objects to be mirrored. It is either a single object or a list of objects.p1
is the first point of the mirror plane.p2
is the second point of the mirror plane.- If the Draft working plane is available the alignment of the mirror plane is determined by its normal, else the view direction of the camera in the active 3D view is used. If the graphical interface is not available the Z axis is used.
mirrored_list
is returned with the newPart::Mirroring
objects. It is either a single object or a list of objects, depending onobjlist
.
Пример:
import FreeCAD as App
import Draft
doc = App.newDocument()
place = App.Placement(FreeCAD.Vector(1000, 0, 0), App.Rotation())
polygon1 = Draft.make_polygon(3, 750)
polygon2 = Draft.make_polygon(5, 750, placement=place)
p1 = App.Vector(2000, -1000, 0)
p2 = App.Vector(2000, 1000, 0)
line1 = Draft.make_line(p1, p2)
mirrored1 = Draft.mirror(polygon1, p1, p2)
Line2 = Draft.make_line(-p1, -p2)
mirrored2 = Draft.mirror([polygon1, polygon2], -p1, -p2)
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