Draft Point/pl

Description
The Draft Point command creates a simple point. Draft points can be useful as a reference for placing lines, wires or other objects.



Usage
See also: Draft Tray, 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) The  task panel opens. See Options for more information.
 * 5) Pick a 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 manually enter coordinates 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.
 * 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 finishing, allowing you to continue creating points.
 * Press to switch Draft snapping on or off.
 * Press or the  button to abort the command.

Preferences
See also: Preferences Editor and Draft Preferences.


 * To change the number of decimals used for the input of coordinates:.

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.