FreeCAD Python
|
GUI Commands of the Draft workbench.
This module contains all the FreeCAD commands of the Draft module
Classes | |
class | Downgrade |
class | Join |
class | Scale |
class | Split |
class | Trimex |
class | Upgrade |
Functions | |
def | formatUnit (exp, unit="mm") |
def | selectObject (arg) |
def | getPoint (target, args, mobile=False, sym=False, workingplane=True, noTracker=False) |
def | redraw3DView () |
def DraftTools.formatUnit | ( | exp, | |
unit = "mm" |
|||
) |
returns a formatting string to set a number to the correct unit
def DraftTools.getPoint | ( | target, | |
args, | |||
mobile = False , |
|||
sym = False , |
|||
workingplane = True , |
|||
noTracker = False |
|||
) |
Function used by the Draft Tools. returns a constrained 3d point and its original point. if mobile=True, the constraining occurs from the location of mouse cursor when Shift is pressed, otherwise from last entered point. If sym=True, x and y values stay always equal. If workingplane=False, the point won't be projected on the Working Plane. if noTracker is True, the tracking line will not be displayed
def DraftTools.redraw3DView | ( | ) |
redraw3DView(): forces a redraw of 3d view.
def DraftTools.selectObject | ( | arg | ) |
this is a scene even handler, to be called from the Draft tools when they need to select an object