Draft Line

Description
The Draft Line command creates a straight line defined by two points. It uses the Draft Linestyle set on the Draft Tray.



Usage

 * 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) Click a first point in the 3D view, or type coordinates and press the  button.
 * 6) Click a second point in the 3D view, or type coordinates and press the  button.

Options

 * Press, or  after the first point to constrain the second point on the given axis.
 * To enter coordinates manually, simply enter the numbers, then press between each X, Y and Z component.
 * You can also define the polar coordinates of the point by giving a value to "Length" and "Angle". Click on the checkbox next to "Angle" to constrain the pointer to the specified angle.
 * You can press the button when you have the desired values to insert the 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 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
Draft Line objects have the same properties as Draft Wire objects.

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

To create a Draft Line use the method of the Draft module:


 * 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: