Draft Point/tr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/tr|Name=Draft Point|Name/tr=Draft Point|Workbenches=Draft, Arch|MenuLocation=Draft -> Point|Shortcut=P T}}")
(Updating to match new version of source page)
Line 26: Line 26:


The Point tool can by used in [[macros]] and from the python console by using the following function:
The Point tool can by used in [[macros]] and from the python console by using the following function:
{{Code|code=
<syntaxhighlight>
makePoint([x],[y],[z])
makePoint([x],[y],[z])
}}
</syntaxhighlight>
* makes a point at the given coordinates. If no X, Y and Z coordinates are given, the point is created at (0,0,0). Returns the newly created object.
* makes a point at the given coordinates. If no X, Y and Z coordinates are given, the point is created at (0,0,0). Returns the newly created object.


Example:
Example:
{{Code|code=
<syntaxhighlight>
import Draft
import Draft
Draft.makePoint(6,4,2)
Draft.makePoint(6,4,2)
}}
</syntaxhighlight>


{{clear}}
{{clear}}

Revision as of 21:41, 1 January 2015

Draft Point

Menü konumu
Draft -> Point
Tezgahlar
Draft, Arch
Varsayılan kısayol
P T
Versiyonda tanıtıldı
-
Ayrıca bkz
Hiçbiri

Description

The Point tool creates a simple point in the current work plane, handy to serve as reference for placing other objects later. It takes the color previously set on the Tasks tab.

How to use

  1. Press the Draft Point button, or press P then T keys
  2. Click a point on the 3D view, or type a coordinate

Options

  • To enter coordinates manually, simply enter the numbers, then press ENTER between each X, Y and Z component.
  • Press ESC or the Cancel button to abort the current Line command.

Properties

  • VeriX: The X coordinate of the point
  • VeriY: The Y coordinate of the point
  • VeriZ: The Z coordinate of the point

Scripting

The Point tool can by used in macros and from the python console by using the following function:

makePoint([x],[y],[z])
  • makes a point at the given coordinates. If no X, Y and Z coordinates are given, the point is created at (0,0,0). Returns the newly created object.

Example:

import Draft
Draft.makePoint(6,4,2)