Draft Slope: Difference between revisions

From FreeCAD Documentation
(Caption)
(Updated Description)
Line 25: Line 25:


<!--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]].

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


</translate>
</translate>

Revision as of 09:55, 15 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 Slope

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

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.

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.