Draft Line

Description
The Draft Line command creates a straight line.



Usage
See also: Draft Linestyle, Draft Snap and Draft Constrain.


 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) * Use the keyboard shortcut: then.
 * 5) The  task panel opens. See Options for more information.
 * 6) Click the first point in the 3D view, or type coordinates and press the  button.
 * 7) Click the second point in the 3D view, or type coordinates and press the  button.

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.


 * To enter coordinates manually enter the X, Y and Z component, and press after each. Or you can press the  button when you have the desired values. It is advisable to move the cursor out of the 3D view before entering coordinates.
 * You can also use polar coordinates for the second point. Enter values for and, and then press the  button.
 * Check the checkbox and enter an angle to constrain the pointer to the specified angle.


 * Press or click the checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first one; if not, they are absolute, taken from the origin (0,0,0).
 * Press or click the checkbox to toggle continue mode. If continue mode is on, the Line command will restart after you give the second point, allowing you to draw another line segment without pressing the command button again.
 * Hold while drawing to force snapping your point to the nearest snap location, independently of the distance.
 * Hold while drawing to constrain your second point horizontally or vertically in relation to the first one.
 * Press + or press the button to undo the last point.
 * Press or the  button to abort the command.

Properties
A Draft Line is in fact a Draft Wire with only two points and has the same properties.

Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Line use the method  of the Draft module. This method replaces the deprecated method.


 * Creates a object between points  and, each defined by its , with units in millimeters.
 * Creates a object from a.
 * Creates a object from the first vertex to the last vertex of the given.

Example: