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 pointer out of the 3D view before entering coordinates.
 * You can 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. For this to work the pointer has to have been in the 3D view after entering the first point.
 * 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 point, else they are relative to the coordinate system origin.
 * Press or click the  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.
 * Press or click the  checkbox to toggle continue mode. If continue mode is on, the command will restart after entering the second point of the line, allowing you to continue drawing lines.
 * The button cannot be used for the Draft Line command.
 * 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: