Draft Trimex/ru: Difference between revisions

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


{{Docnav
{{Docnav/ru
|[[Draft_Offset|Offset]]
|[[Draft_Offset/ru|Смещение]]
|[[Draft_Stretch|Stretch]]
|[[Draft_Stretch/ru|Растянуть]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench/ru|Верстак Draft]]
|IconL=Draft_Offset.svg
|IconL=Draft_Offset.svg
|IconR=Draft_Stretch.svg
|IconR=Draft_Stretch.svg
Line 10: Line 10:
}}
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name/ru=Укоротить/Растянуть
|Name=Draft Trimex
|Name/ru=Draft Trimex
|Name=Draft_Trimex
|MenuLocation=Modification → Укоротить/Растянуть
|Workbenches=[[Draft Module/ru|Draft]], [[Arch Module/ru|Arch]]
|Workbenches=[[Draft_Workbench/ru|Draft]], [[Arch_Workbench/ru|Arch]]
|MenuLocation=Черчение -> Trimex
|Shortcut=T R
|Shortcut={{KEY|T}} {{KEY|R}}
|SeeAlso=[[Part Extrude/ru|Part Extrude]]
|SeeAlso=[[Part_Extrude/ru|Выдавить]]
}}
}}
</div>


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


The [[Image:Draft_Trimex.svg|24px]] '''Draft Trimex''' command [[#Trim_or_extend|trims or extends]] a selected object. Intersections with the edge of another object can be used to determine new endpoints. The command can also be used to [[#Extrude|extrude]] a face, in which case it creates a [[Part_Extrude|Part Extrude]] object.
The [[Image:Draft_Trimex.svg|24px]] '''Draft Trimex''' command [[#Trim_or_extend|trims or extends]] a selected object. Intersections with the edge of another object can be used to determine new endpoints. The command can also be used to [[#Extrude|extrude]] a face, in which case it creates a [[Part_Extrude|Part Extrude]] object.


[[Image:Draft trimex example.jpg|400px]]
[[Image:Draft trimex example.jpg|400px]]
{{Caption|Top: a Draft Wire extended and then trimmed. Bottom: a face extruded into a solid body.}}
{{Caption|Top: a Draft Wire extended and then trimmed.<br>
Bottom: a face extruded into a solid body.}}


==Trim or extend==
==Trim or extend==
Line 32: Line 32:
===Usage===
===Usage===


# Optionally select one object. The object must be a [[Draft_Line|Draft Line]], a [[Draft_Wire|Draft Wire]], a [[Draft_Arc|Draft Arc]] or a [[Draft_Line|Draft Circle]] (which can only be trimmed). If the selected object is closed it must have its {{PropertyData|Make Face}} property set to {{FALSE}}.
# Optionally select one object. The object must be a [[Draft_Line|Draft Line]], a [[Draft_Wire|Draft Wire]], a [[Draft_Arc|Draft Arc]] or a [[Draft_Circle|Draft Circle]] (which can only be trimmed). If the selected object is closed it must have its {{PropertyData|Make Face}} property set to {{FALSE}}.
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Draft_Trimex.svg|16px]] [[Draft_Trimex|Draft Trimex]]}} button.
#* Press the {{Button|[[Image:Draft_Trimex.svg|16px]] [[Draft_Trimex|Trimex]]}} button.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Trimex.svg|16px]] Trimex}} option from the menu.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Trimex.svg|16px]] Trimex}} option from the menu.
#* Use the keyboard shortcut: {{KEY|T}} then {{KEY|R}}.
#* Use the keyboard shortcut: {{KEY|T}} then {{KEY|R}}.
Line 43: Line 43:
#* Pick a point in the [[3D_view|3D view]].
#* Pick a point in the [[3D_view|3D view]].
#* Enter a {{MenuCommand|Distance}} or an {{MenuCommand|Angle}}. The distance is a delta distance. This option does not work if modifier keys are used.
#* Enter a {{MenuCommand|Distance}} or an {{MenuCommand|Angle}}. The distance is a delta distance. This option does not work if modifier keys are used.
#* Move the pointer over an edge belonging to another object, and click when this edge is highlighted, to trim or extend the selected object using an intersection with the highlighted edge as the new endpoint. Note that [[Draft_Snap|Draft Snaps]] can have an undesirable impact here. In some cases it may be required to turn them off temporarily.
#* Move the pointer over an edge belonging to another object, and click when this edge is highlighted, to trim or extend the selected object using an intersection with the highlighted edge as the new endpoint. When trimming, the projection of the point where the cutting edge is selected onto the object to be trimmed, determines the default result. Note that [[Draft_Snap|Draft Snaps]] can have an undesirable impact here. In some cases it can be useful to turn them off temporarily.


===Options===
===Options===


The modifier keys mentioned here can be changed. See [[Draft_Preferences|Draft Preferences]].
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 solution with the largest length determines the default direction of the command. Hold {{KEY|Alt}} to invert this direction.
* Hold down {{KEY|Alt}} to invert the default result of the command.
* Hold {{KEY|Shift}} to restrict the operation to the current segment of a [[Draft_Wire|Draft Wire]].
* Hold down {{KEY|Shift}} to restrict the operation to the current segment of a [[Draft_Wire|Draft Wire]].
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off.


Here is an example to explain the modifier keys. The left edge or the bottom edge of the U-shaped wire was extended. All [[Draft_Snap|Draft Snaps]] were turned off.
Here is an example to explain the modifier keys. The left edge or the bottom edge of the U-shaped wire was extended. All [[Draft_Snap|Draft Snaps]] were turned off.
Line 56: Line 57:
[[Image:Draft_Trimex_example2.png]]
[[Image:Draft_Trimex_example2.png]]


# The arc was clicked near the bottom left corner of the wire. This is the default behavior.
# The arc was clicked near the bottom left corner of the wire. This is the default result.
# {{KEY|Alt}} was held down while the arc was clicked near the bottom left corner of the wire.
# {{KEY|Alt}} was held down while the arc was clicked near the bottom left corner of the wire.
# {{KEY|Y}} was pressed, and while hovering over the left edge {{KEY|Shift}} was held down and then the arc was clicked. Pressing {{KEY|Y}} is only required for edges that are more or less parallel to the Y axis.
# {{KEY|Y}} was pressed, and while hovering over the left edge {{KEY|Shift}} was held down and then the arc was clicked. Pressing {{KEY|Y}} is only required for edges that are more or less parallel to the Y axis.
Line 84: Line 85:
* Hold {{KEY|Shift}} to extrude in a direction that is not parallel to the normal of the face.
* Hold {{KEY|Shift}} to extrude in a direction that is not parallel to the normal of the face.


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

See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].

* To change the number of decimals used for the input of the distance: {{MenuCommand|Edit → Preferences... → General → Units → Units settings → Number of decimals}}.

==Scripting==


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 105: Line 101:
* {{incode|extrusion}} is returned with the created object.
* {{incode|extrusion}} is returned with the created object.


Пример:
Example:


{{Code|code=
{{Code|code=
Line 122: Line 118:




{{Docnav
{{Docnav/ru
|[[Draft_Offset|Offset]]
|[[Draft_Offset/ru|Смещение]]
|[[Draft_Stretch|Stretch]]
|[[Draft_Stretch/ru|Растянуть]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench/ru|Верстак Draft]]
|IconL=Draft_Offset.svg
|IconL=Draft_Offset.svg
|IconR=Draft_Stretch.svg
|IconR=Draft_Stretch.svg

Latest revision as of 05:07, 9 January 2024

Укоротить/Растянуть

Системное название
Draft_Trimex
Расположение в меню
Modification → Укоротить/Растянуть
Верстаки
Draft, Arch
Быстрые клавиши
T R
Представлено в версии
-
См. также
Выдавить

Описание

The Draft Trimex command trims or extends a selected object. Intersections with the edge of another object can be used to determine new endpoints. The command can also be used to extrude a face, in which case it creates a Part Extrude object.

Top: a Draft Wire extended and then trimmed.
Bottom: a face extruded into a solid body.

Trim or extend

Usage

  1. Optionally select one object. The object must be a Draft Line, a Draft Wire, a Draft Arc or a Draft Circle (which can only be trimmed). If the selected object is closed it must have its ДанныеMake Face property set to false.
  2. There are several ways to invoke the command:
    • Press the Trimex button.
    • Select the Modification → Trimex option from the menu.
    • Use the keyboard shortcut: T then R.
  3. If you have not yet selected an object: select an object in the 3D view.
  4. The Trimex task panel opens. See Options for more information.
  5. Move the pointer in the 3D view so that the preview matches the desired result. If required use the modifier keys as explained in the Options.
  6. Do one of the following:
    • Pick a point in the 3D view.
    • Enter a Distance or an Angle. The distance is a delta distance. This option does not work if modifier keys are used.
    • Move the pointer over an edge belonging to another object, and click when this edge is highlighted, to trim or extend the selected object using an intersection with the highlighted edge as the new endpoint. When trimming, the projection of the point where the cutting edge is selected onto the object to be trimmed, determines the default result. Note that Draft Snaps can have an undesirable impact here. In some cases it can be useful to turn them off temporarily.

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.

  • Hold down Alt to invert the default result of the command.
  • Hold down Shift to restrict the operation to the current segment of a Draft Wire.
  • Press S to switch Draft snapping on or off.

Here is an example to explain the modifier keys. The left edge or the bottom edge of the U-shaped wire was extended. All Draft Snaps were turned off.

  1. The arc was clicked near the bottom left corner of the wire. This is the default result.
  2. Alt was held down while the arc was clicked near the bottom left corner of the wire.
  3. Y was pressed, and while hovering over the left edge Shift was held down and then the arc was clicked. Pressing Y is only required for edges that are more or less parallel to the Y axis.

Extrude

Usage

See also: Draft Snap and Draft Constrain.

  1. It can be helpful to first change the Draft working plane so that it is not coplanar with the face you want to extrude.
  2. Optionally select a single face or an object with a single face.
  3. There are several ways to invoke the command:
    • Press the Draft Trimex button.
    • Select the Modification → Trimex option from the menu.
    • Use the keyboard shortcut: T then R.
  4. If you have not yet selected an object or a face: select an object with a single face in the 3D view.
  5. The Trimex task panel opens. See Options for more information.
  6. To define the extrusion direction and distance do one of the following:
    • Pick a point in the 3D view that does no lie on the same plane as the face.
    • Make sure the pointer is on the correct side of the face in the 3D view and enter a Distance.

Options

The modifier key mentioned here can be changed. See Draft Preferences.

  • Hold Shift to extrude in a direction that is not parallel to the normal of the face.

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

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

There is no Python method to trim objects. To extrude objects use the extrude method of the Draft module.

extrusion = extrude(obj, vector, solid=False)
  • obj is the object to be extruded.
  • vector is the extrusion direction and distance.
  • If solid is True a solid is created instead of a shell.
  • extrusion is returned with the created object.

Пример:

import FreeCAD as App
import Draft

doc = App.newDocument()

rectangle = Draft.make_rectangle(1500, 500)
doc.recompute()

vector = App.Vector(0, 0, 300)
solid = Draft.extrude(rectangle, vector, solid=True)
doc.recompute()