Draft Point

Description
The Point tool creates a simple point in the current work plane, handy to serve as reference for placing lines, wires, or other objects later. It uses the Draft Linestyle (only the color) set on the Draft Tray.



How to use

 * 1) Press the  button, or press  then  keys.
 * 2) Click a point on the 3D view, or type a coordinate 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

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

Scripting
Draft API and FreeCAD Scripting Basics.

The Point tool can be used in macros and from the [[Python|]Python] console by using the following function:


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