Draft Point

Description
The Draft Point command creates a simple point in the current working plane, useful as a reference for placing lines, wires, or other objects. It uses the Draft Linestyle (only the color) 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) Click a point in the 3D view, or type coordinates and press the  button.

Options

 * To enter coordinates manually, simply enter the numbers, then press between each X, Y and Z component. You can press the  button when you have the desired values to insert the point.
 * Press or click the checkbox to toggle continue mode. If continue mode is on, the point tool will restart after you place a point, allowing you to place another one without pressing the tool button again.
 * Press or the  button to abort the current command.

Properties
See also: Property editor.

A Draft Point object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Data

 * : specifies the X coordinate of the point.
 * : specifies the Y coordinate of the point.
 * : specifies the Z coordinate of the point.

View

 * : not used.
 * : not used.

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

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


 * Creates a object in the specified,  and  coordinates, with units in millimeters. If no coordinates are given the point is created at the origin (0,0,0).
 * If is a  defined by a, it is used.
 * is a tuple that indicates the color of the point in the RGB scale; each value in the tuple should be in the range from  to.
 * is the name of the object.
 * is the size of the object in pixels, if the graphical user interface is loaded.

Example:

Example:

This code creates random points within a square of side. It makes a loop creating points, that may appear anywhere from  to  on both X and Y. It also chooses a random color and size for each point. Change to change the number of points, and change  to change the area covered by the points.