Draft Stretch/ru: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 17: | Line 17: | ||
|MenuLocation=Modification → Stretch |
|MenuLocation=Modification → Stretch |
||
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]] |
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]] |
||
|Shortcut={{KEY|S}} {{KEY|H}} |
|||
|Version=0.17 |
|Version=0.17 |
||
|SeeAlso=[[Draft_Offset|Draft Offset]], [[Draft_Scale|Draft Scale]] |
|||
}} |
}} |
||
==Описание== |
==Описание== |
||
The |
The [[Image:Draft_Stretch.svg|24px]] '''Draft Stretch''' command stretches objects by moving selected points. |
||
The Stretch tool works for objects like [[Draft Wire|Draft Wire]]s and [[Draft BSpline|Draft BSpline]]s which are defined by many points. |
|||
[[Image:Draft_Stretch_Example.jpg|400px]] |
[[Image:Draft_Stretch_Example.jpg|400px]] |
||
{{Caption|Stretching |
{{Caption|Stretching three Draft Wires}} |
||
==Usage== |
==Usage== |
||
See also: [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]]. |
|||
# Select an object that you wish to stretch. |
|||
⚫ | |||
⚫ | |||
# Click a second point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button. The first two points define a selection rectangle. The vertices of the original object enclosed by this rectangle become highlighted. |
|||
⚫ | |||
# Click a fourth point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button. The second pair of points define a line, whose distance and direction will be used to stretch the figure attached to the highlighted points. |
|||
# Optionally select one or more objects. The objects must be [[Draft_Line|Draft Lines]], [[Draft_Wire|Draft Wires]], [[Draft_Rectangle|Draft Rectangles]], [[Draft_BSpline|Draft BSplines]] or [[Draft_BezCurve|Draft BezCurves]]. Other objects are ignored. |
|||
==Notes== |
|||
# There are several ways to invoke the command: |
|||
⚫ | |||
* The Stretch tool is designed to work with objects that are comprised of points. By moving only the selected points, the original figure is stretched in the desired direction. |
|||
#* Select the {{MenuCommand|Modification → [[Image:Draft_Stretch.svg|16px]] Stretch}} option from the menu. |
|||
* So far, only [[Draft Line|Draft Line]], [[Draft Wire|Draft Wire]], [[Draft BSpline|Draft BSpline]], [[Draft BezCurve|Draft BezCurve]] and [[Draft Rectangle|Draft Rectangle]] work with this tool. |
|||
#* Use the keyboard shortcut: {{KEY|S}} then {{KEY|H}}. |
|||
* [[Draft Circle|Draft Circle]]s and [[Draft Polygon|Draft Polygon]]s are only defined by their centers; the individual edges of those shapes don't have selectable points, and therefore can't be stretched. Performing a stretch operation on them will simply move the object like using {{Button|[[Image:Draft Move.svg|16px]] [[Draft Move|Draft Move]]}}. |
|||
# If you have not yet selected an object: select an object in the [[3D_view|3D view]]. |
|||
# The {{MenuCommand|Stretch}} task panel opens. See [[#Options|Options]] for more information. |
|||
# Pick the first point, one corner of a rectangular selection area, in the [[3D_view|3D view]], or type [[Draft_Coordinates|coordinates]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button. |
|||
# Pick the second point, the opposite corner of the selection area, in the [[3D_view|3D view]], or type [[Draft_Coordinates|coordinates]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button. |
|||
# The points of the selected objects that are inside the selection area are marked. |
|||
⚫ | |||
⚫ | |||
==Options== |
==Options== |
||
The single character keyboard shortcuts mentioned here can be changed. See [[Draft_Preferences|Draft Preferences]]. |
|||
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after the first point to constrain the second point on the given axis. |
|||
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component. |
|||
⚫ | |||
* Press {{KEY|T}} or click the checkbox to toggle ''continue'' mode. If continue mode is on, the Stretch tool will restart after you give the final point, allowing you to repeat the operation without pressing the tool button again. |
|||
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
|||
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your second point horizontally or vertically in relation to the first one. |
|||
⚫ | |||
* 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|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|Filled}} checkbox has no purpose for this command. |
|||
* The {{MenuCommand|Continue}} checkbox has no purpose for this command. |
|||
⚫ | |||
==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}}. |
|||
⚫ | |||
⚫ | |||
There is no programming interface available for the Stretch tool. All it does is change some attributes of the selected Draft objects, like {{incode|Placement}}, {{incode|Points}}, {{incode|Length}}, or {{incode|Height}}, which results in a stretched shape. |
|||
There is no Python method to stretch objects. To emulate the results of the Draft Stretch command geometric properties of objects have to be modified. |
|||
When using the Stretch tool the [[Python|Python]] console shows the individual commands that were used to produce the stretching of the shape. |
|||
Revision as of 08:14, 16 June 2021
This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.
Draft Stretch |
Menu location |
---|
Modification → Stretch |
Workbenches |
Draft, Arch |
Default shortcut |
S H |
Introduced in version |
0.17 |
See also |
None |
Описание
The Draft Stretch command stretches objects by moving selected points.
Stretching three Draft Wires
Usage
See also: Draft Snap and Draft Constrain.
- Optionally select one or more objects. The objects must be Draft Lines, Draft Wires, Draft Rectangles, Draft BSplines or Draft BezCurves. Other objects are ignored.
- There are several ways to invoke the command:
- Press the Draft Stretch button.
- Select the Modification → Stretch option from the menu.
- Use the keyboard shortcut: S then H.
- If you have not yet selected an object: select an object in the 3D view.
- The Stretch task panel opens. See Options for more information.
- Pick the first point, one corner of a rectangular selection area, in the 3D view, or type coordinates and press the Enter point button.
- Pick the second point, the opposite corner of the selection area, in the 3D view, or type coordinates and press the Enter point button.
- The points of the selected objects that are inside the selection area are marked.
- Pick the third point, the base point, in the 3D view, or type coordinates and press the Enter point button.
- Pick the fourth point, the target point, in the 3D view, or type coordinates and press the Enter point button.
Options
The single character keyboard shortcuts mentioned here can be changed. See Draft Preferences.
- 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 of the displacement 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
- The Filled checkbox has no purpose for this command.
- The Continue checkbox has no purpose for this command.
- Press Esc or the Close button to abort the command.
Preferences
See also: Preferences Editor and Draft Preferences.
- To change the number of decimals used for the input of coordinates: Edit → Preferences... → General → Units → Units settings → Number of decimals.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
There is no Python method to stretch objects. To emulate the results of the Draft Stretch command geometric properties of objects have to be modified.
Draft
- 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