Draft Slope: Difference between revisions

From FreeCAD Documentation
(Updated Usage)
(The command was removed from the Utilities menu in V0.20. See https://github.com/FreeCAD/FreeCAD/pull/4882.)
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Page_in_progress}}
<languages/>
<languages/>
<translate>
<translate>
Line 7: Line 6:
|[[Draft_Draft2Sketch|Draft2Sketch]]
|[[Draft_Draft2Sketch|Draft2Sketch]]
|[[Draft_FlipDimension|FlipDimension]]
|[[Draft_FlipDimension|FlipDimension]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Draft2Sketch.svg
|IconL=Draft_Draft2Sketch.svg
|IconR=Draft_FlipDimension.svg
|IconR=Draft_FlipDimension.svg
Line 17: Line 16:
|Name=Draft Slope
|Name=Draft Slope
|MenuLocation=Modification → Set slope
|MenuLocation=Modification → Set slope
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]]
|Workbenches=[[Draft_Workbench|Draft]], [[Arch_Workbench|Arch]]
|Version=0.17
|Version=0.17
|SeeAlso=[[Draft_Line|Draft Line]], [[Draft_Wire|Draft Wire]]
}}
}}


Line 25: Line 23:


<!--T:2-->
<!--T:2-->
For a selected [[Draft_Line|Draft Line]] or [[Draft_Wire|Draft Wire]] drawn on the XY plane, the Draft Slope tool increases the Z coordinate of all vertices after the first one, so that the line or wire has the defined slope.
The [[Image:Draft_Slope.svg|24px]] '''Draft Slope''' command slopes selected [[Draft_Line|Draft Lines]] or [[Draft_Wire|Draft Wires]] by increasing, or decreasing, the Z coordinate of all points after the first one. It can also be used to flatten [[Draft_Wire|Draft Wires]]. Note that the slope is relative to the XY plane defined by the {{PropertyData|Placement}} of the objects.

<!--T:5-->
The equivalent action is editing the object and moving the points manually to a new position.


</translate>
</translate>
Line 34: Line 29:
<translate>
<translate>
<!--T:6-->
<!--T:6-->
{{Caption|Horizontal line; line with slope changed to 45°}}
{{Caption|On the left a horizontal Draft Line. On the right the same line with a slope value of 1 (angle is 45°)}}


==Usage== <!--T:13-->
==Usage== <!--T:13-->


<!--T:4-->
<!--T:4-->
# Select a [[Draft_Line|Draft Line]] or a [[Draft_Wire|Draft Wire]].
# Select one or more [[Draft_Line|Draft Lines]] and/or [[Draft_Wire|Draft Wires]].
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Draft_Slope.svg|16px]] [[Draft_Slope|Draft Slope]]}} button.
#* Press the {{Button|[[Image:Draft_Slope.svg|16px]] [[Draft_Slope|Draft Slope]]}} button.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Slope.svg|16px]] Set slope}} option from the menu.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Slope.svg|16px]] Set slope}} option from the menu.
# Enter the {{MenuCommand|Slope}} value. {{Value|0}} means each segment is horizontal, {{Value|0.5}} means the delta height for each segment is half its length. The value can also be negative.
# Enter a {{MenuCommand|Slope}} value. {{Value|0}} means each segment is horizontal, {{Value|0.5}} means the delta height for each segment is {{Value|0.5}} times its length, etc. The value can also be negative.
* Press {{KEY|Enter}} or the {{button|}} }} button to finish the command.
# Press {{KEY|Enter}} or the {{button|OK}} button to finish the command.


==Scripting==
==Scripting== <!--T:14-->


<!--T:15-->
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]].


<!--T:16-->
There is no Python method to slope objects. To emulate the results of the Draft Slope command the {{incode|Points}} property of wire objects has to be modified.
There is no Python method to slope objects. To emulate the results of the Draft Slope command the {{incode|Points}} property of wire objects has to be modified.


Line 57: Line 54:
|[[Draft_Draft2Sketch|Draft2Sketch]]
|[[Draft_Draft2Sketch|Draft2Sketch]]
|[[Draft_FlipDimension|FlipDimension]]
|[[Draft_FlipDimension|FlipDimension]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Draft2Sketch.svg
|IconL=Draft_Draft2Sketch.svg
|IconR=Draft_FlipDimension.svg
|IconR=Draft_FlipDimension.svg

Revision as of 12:58, 2 September 2021

Draft Slope

Menu location
Modification → Set slope
Workbenches
Draft, Arch
Default shortcut
None
Introduced in version
0.17
See also
None

Description

The Draft Slope command slopes selected Draft Lines or Draft Wires by increasing, or decreasing, the Z coordinate of all points after the first one. It can also be used to flatten Draft Wires. Note that the slope is relative to the XY plane defined by the DataPlacement of the objects.

On the left a horizontal Draft Line. On the right the same line with a slope value of 1 (angle is 45°)

Usage

  1. Select one or more Draft Lines and/or Draft Wires.
  2. There are several ways to invoke the command:
    • Press the Draft Slope button.
    • Select the Modification → Set slope option from the menu.
  3. Enter a Slope value. 0 means each segment is horizontal, 0.5 means the delta height for each segment is 0.5 times its length, etc. The value can also be negative.
  4. Press Enter or the OK button to finish the command.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

There is no Python method to slope objects. To emulate the results of the Draft Slope command the Points property of wire objects has to be modified.