Modules that define the workbench GuiCommands to perform actions. More...

Classes

class  draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor
 
class  draftguitools.gui_arcs.Arc
 
class  draftguitools.gui_arcs.Arc_3Points
 
class  draftguitools.gui_arcs.ArcGroup
 
class  draftguitools.gui_array_simple.Array
 
class  draftguitools.gui_array_simple.LinkArray
 
class  draftguitools.gui_arrays.ArrayGroup
 
class  draftguitools.gui_base.GuiCommandBase
 
class  draftguitools.gui_base.GuiCommandNeedsSelection
 
class  draftguitools.gui_base.GuiCommandSimplest
 
class  draftguitools.gui_base_original.Creator
 
class  draftguitools.gui_base_original.DraftTool
 
class  draftguitools.gui_base_original.Modifier
 
class  draftguitools.gui_beziers.BezCurve
 
class  draftguitools.gui_beziers.BezierGroup
 
class  draftguitools.gui_beziers.CubicBezCurve
 
class  draftguitools.gui_circles.Circle
 
class  draftguitools.gui_circulararray.CircularArray
 
class  draftguitools.gui_clone.Clone
 
class  draftguitools.gui_dimension_ops.FlipDimension
 
class  draftguitools.gui_dimensions.Dimension
 
class  draftguitools.gui_downgrade.Downgrade
 
class  draftguitools.gui_draft2sketch.Draft2Sketch
 
class  draftguitools.gui_drawing.Drawing
 
class  draftguitools.gui_edit.Edit
 
class  draftguitools.gui_edit.GuiToolsRepository
 
class  draftguitools.gui_edit_arch_objects.ArchPanelCutGuiTools
 
class  draftguitools.gui_edit_arch_objects.ArchPanelSheetGuiTools
 
class  draftguitools.gui_edit_arch_objects.ArchSpaceGuiTools
 
class  draftguitools.gui_edit_arch_objects.ArchStructureGuiTools
 
class  draftguitools.gui_edit_arch_objects.ArchWallGuiTools
 
class  draftguitools.gui_edit_arch_objects.ArchWindowGuiTools
 
class  draftguitools.gui_edit_base_object.GuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftBezCurveGuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftBSplineGuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftCircleGuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftDimensionGuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftEllipseGuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftPolygonGuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftRectangleGuiTools
 
class  draftguitools.gui_edit_draft_objects.DraftWireGuiTools
 
class  draftguitools.gui_edit_part_objects.PartBoxGuiTools
 
class  draftguitools.gui_edit_part_objects.PartConeGuiTools
 
class  draftguitools.gui_edit_part_objects.PartCylinderGuiTools
 
class  draftguitools.gui_edit_part_objects.PartLineGuiTools
 
class  draftguitools.gui_edit_part_objects.PartSphereGuiTools
 
class  draftguitools.gui_edit_sketcher_objects.SketcherSketchObjectGuiTools
 
class  draftguitools.gui_ellipses.Ellipse
 
class  draftguitools.gui_facebinders.Facebinder
 
class  draftguitools.gui_fillets.Fillet
 
class  draftguitools.gui_grid.ToggleGrid
 
class  draftguitools.gui_groups.AddNamedGroup
 
class  draftguitools.gui_groups.AddToConstruction
 
class  draftguitools.gui_groups.AddToGroup
 
class  draftguitools.gui_groups.SelectGroup
 
class  draftguitools.gui_groups.SetAutoGroup
 
class  draftguitools.gui_groups.Ui_AddNamedGroup
 
class  draftguitools.gui_heal.Heal
 
class  draftguitools.gui_join.Join
 
class  draftguitools.gui_labels.Label
 
class  draftguitools.gui_layers.Layer
 
class  draftguitools.gui_line_add_delete.AddPoint
 
class  draftguitools.gui_line_add_delete.DelPoint
 
class  draftguitools.gui_lines.Line
 
class  draftguitools.gui_lines.Wire
 
class  draftguitools.gui_lineslope.LineSlope
 
class  draftguitools.gui_mirror.Mirror
 
class  draftguitools.gui_move.Move
 
class  draftguitools.gui_offset.Offset
 
class  draftguitools.gui_orthoarray.OrthoArray
 
class  draftguitools.gui_patharray.PathArray
 
class  draftguitools.gui_patharray.PathLinkArray
 
class  draftguitools.gui_pathtwistedarray.PathTwistedArray
 
class  draftguitools.gui_pathtwistedarray.PathTwistedLinkArray
 
class  draftguitools.gui_planeproxy.Draft_WorkingPlaneProxy
 
class  draftguitools.gui_pointarray.PointArray
 
class  draftguitools.gui_pointarray.PointLinkArray
 
class  draftguitools.gui_points.Point
 
class  draftguitools.gui_polararray.PolarArray
 
class  draftguitools.gui_polygons.Polygon
 
class  draftguitools.gui_rectangles.Rectangle
 
class  draftguitools.gui_rotate.Rotate
 
class  draftguitools.gui_scale.Scale
 
class  draftguitools.gui_selectplane.Draft_SelectPlane
 
class  draftguitools.gui_setstyle.Draft_SetStyle
 
class  draftguitools.gui_setstyle.Draft_SetStyle_TaskPanel
 
class  draftguitools.gui_shape2dview.Shape2DView
 
class  draftguitools.gui_shapestrings.ShapeString
 
class  draftguitools.gui_snapper.Snapper
 
class  draftguitools.gui_snaps.Draft_Snap_Angle
 
class  draftguitools.gui_snaps.Draft_Snap_Base
 
class  draftguitools.gui_snaps.Draft_Snap_Center
 
class  draftguitools.gui_snaps.Draft_Snap_Dimensions
 
class  draftguitools.gui_snaps.Draft_Snap_Endpoint
 
class  draftguitools.gui_snaps.Draft_Snap_Extension
 
class  draftguitools.gui_snaps.Draft_Snap_Grid
 
class  draftguitools.gui_snaps.Draft_Snap_Intersection
 
class  draftguitools.gui_snaps.Draft_Snap_Lock
 
class  draftguitools.gui_snaps.Draft_Snap_Midpoint
 
class  draftguitools.gui_snaps.Draft_Snap_Near
 
class  draftguitools.gui_snaps.Draft_Snap_Ortho
 
class  draftguitools.gui_snaps.Draft_Snap_Parallel
 
class  draftguitools.gui_snaps.Draft_Snap_Perpendicular
 
class  draftguitools.gui_snaps.Draft_Snap_Special
 
class  draftguitools.gui_snaps.Draft_Snap_WorkingPlane
 
class  draftguitools.gui_snaps.ShowSnapBar
 
class  draftguitools.gui_splines.BSpline
 
class  draftguitools.gui_split.Split
 
class  draftguitools.gui_stretch.Stretch
 
class  draftguitools.gui_styles.ApplyStyle
 
class  draftguitools.gui_subelements.SubelementHighlight
 
class  draftguitools.gui_texts.Text
 
class  draftguitools.gui_togglemodes.BaseMode
 
class  draftguitools.gui_togglemodes.ToggleConstructionMode
 
class  draftguitools.gui_togglemodes.ToggleContinueMode
 
class  draftguitools.gui_togglemodes.ToggleDisplayMode
 
class  draftguitools.gui_trackers.archDimTracker
 
class  draftguitools.gui_trackers.arcTracker
 
class  draftguitools.gui_trackers.bezcurveTracker
 
class  draftguitools.gui_trackers.boxTracker
 
class  draftguitools.gui_trackers.bsplineTracker
 
class  draftguitools.gui_trackers.dimTracker
 
class  draftguitools.gui_trackers.editTracker
 
class  draftguitools.gui_trackers.ghostTracker
 
class  draftguitools.gui_trackers.gridTracker
 
class  draftguitools.gui_trackers.lineTracker
 
class  draftguitools.gui_trackers.PlaneTracker
 
class  draftguitools.gui_trackers.radiusTracker
 
class  draftguitools.gui_trackers.rectangleTracker
 
class  draftguitools.gui_trackers.snapTracker
 
class  draftguitools.gui_trackers.Tracker
 
class  draftguitools.gui_trackers.wireTracker
 
class  draftguitools.gui_trimex.Trimex
 
class  draftguitools.gui_upgrade.Upgrade
 
class  draftguitools.gui_wire2spline.WireToBSpline
 

Namespaces

namespace  gui_annotationstyleeditor
 Provides GUI tools to create and edit annotation styles.
 
namespace  gui_arcs
 Provides GUI tools to create circular arc objects.
 
namespace  gui_array_simple
 Provides GUI tools to create parametric Array objects (OBSOLETE).
 
namespace  gui_arrays
 Provides GUI tools to create parametric Array objects.
 
namespace  gui_base
 Provides the base classes for newer Draft Gui Commands.
 
namespace  gui_base_original
 Provides the base classes for most old Draft Gui Commands.
 
namespace  gui_beziers
 Provides GUI tools to create BezCurve objects.
 
namespace  gui_circles
 Provides GUI tools to create Circle objects.
 
namespace  gui_circulararray
 Provides GUI tools to create circular Array objects.
 
namespace  gui_clone
 Provides GUI tools to create Clone objects.
 
namespace  gui_dimension_ops
 Provides GUI tools to modify dimension objects.
 
namespace  gui_dimensions
 Provides GUI tools to create dimension objects.
 
namespace  gui_downgrade
 Provides GUI tools to downgrade objects.
 
namespace  gui_draft2sketch
 Provides GUI tools to convert Draft objects to Sketches and back.
 
namespace  gui_drawing
 Provides GUI tools to project an object into a Drawing Workbench page.
 
namespace  gui_edit
 Provides GUI tools to start the edit mode of different objects.
 
namespace  gui_edit_arch_objects
 Provides support functions to edit Arch objects.
 
namespace  gui_edit_draft_objects
 Provides support functions to edit Draft objects.
 
namespace  gui_edit_part_objects
 Provides support functions to edit Part objects.
 
namespace  gui_edit_sketcher_objects
 Provides support functions to edit Sketch objects.
 
namespace  gui_ellipses
 Provides GUI tools to create Ellipse objects.
 
namespace  gui_facebinders
 Provides GUI tools to create Facebinder objects.
 
namespace  gui_fillet
 Provides GUI tools to create Fillet objects between two lines.
 
namespace  gui_grid
 Provides GUI tools to enable and disable the working plane grid.
 
namespace  gui_groups
 Provides GUI tools to do various operations with groups.
 
namespace  gui_heal
 Provides GUI tools to repair objects created with older versions.
 
namespace  gui_join
 Provides GUI tools to join lines and wires.
 
namespace  gui_labels
 Provides GUI tools to create Label objects.
 
namespace  gui_layers
 Provides GUI tools to create Layer objects.
 
namespace  gui_line_add_delete
 Provides GUI tools to do certain add and remove line operations.
 
namespace  gui_lines
 Provides GUI tools to create straight Line and Wire objects.
 
namespace  gui_lineslope
 Provides GUI tools to change the slope of a line.
 
namespace  gui_mirror
 Provides GUI tools to create mirrored objects.
 
namespace  gui_move
 Provides GUI tools to move objects in the 3D space.
 
namespace  gui_offset
 Provides GUI tools to create offsets from objects.
 
namespace  gui_orthoarray
 Provides GUI tools to create orthogonal Array objects.
 
namespace  gui_patharray
 Provides GUI tools to create PathArray objects.
 
namespace  gui_pathtwistedarray
 Provides GUI tools to create PathTwistedArray objects.
 
namespace  gui_planeproxy
 Provides GUI tools to create WorkingPlaneProxy objects.
 
namespace  gui_pointarray
 Provides GUI tools to create PointArray objects.
 
namespace  gui_points
 Provides GUI tools to create simple Point objects.
 
namespace  gui_polararray
 Provides GUI tools to create polar Array objects.
 
namespace  gui_polygons
 Provides GUI tools to create regular Polygon objects.
 
namespace  gui_rectangles
 Provides GUI tools to create Rectangle objects.
 
namespace  gui_rotate
 Provides GUI tools to rotate objects in the 3D space.
 
namespace  gui_scale
 Provides GUI tools to scale objects in the 3D space.
 
namespace  gui_selectplane
 Provides GUI tools to set up the working plane and its grid.
 
namespace  gui_setstyle
 Provides GUI tools to set Draft styles such as color or line width.
 
namespace  gui_shape2dview
 Provides GUI tools to project an object into a 2D plane.
 
namespace  gui_shapestrings
 Provides GUI tools to create text shapes with a particular font.
 
namespace  gui_snapper
 Provides the Snapper class to define the snapping tools and modes.
 
namespace  gui_snaps
 Provides GUI tools to activate the different snapping methods.
 
namespace  gui_splines
 Provides GUI tools to create BSpline objects.
 
namespace  gui_split
 Provides GUI tools to split line and wire objects.
 
namespace  gui_stretch
 Provides GUI tools to stretch Draft objects.
 
namespace  gui_styles
 Provides GUI tools to apply styles to objects.
 
namespace  gui_subelements
 Provides GUI tools to highlight subelements of objects.
 
namespace  gui_texts
 Provides GUI tools to create simple Text objects.
 
namespace  gui_togglemodes
 Provides GUI tools to set different modes of other tools.
 
namespace  gui_tool_utils
 Provides utility functions that are used by many Draft Gui Commands.
 
namespace  gui_trackers
 Provides Coin based objects used to preview objects being built.
 
namespace  gui_trimex
 Provides GUI tools to trim and extend lines.
 
namespace  gui_upgrade
 Provides GUI tools to upgrade objects.
 
namespace  gui_wire2spline
 Provides GUI tools to convert polylines to B-splines and back.
 

Functions

def draftguitools.gui_tool_utils.format_unit (exp, unit="mm")
 
def draftguitools.gui_tool_utils.get_point (target, args, mobile=False, sym=False, workingplane=True, noTracker=False)
 
def draftguitools.gui_snaps.get_snap_statusbar_widget ()
 
def draftguitools.gui_tool_utils.get_support (mouseEvent=None)
 
def draftguitools.gui_tool_utils.has_mod (args, mod)
 
def draftguitools.gui_groups.moveToGroup (group)
 
def draftguitools.gui_setstyle.QT_TRANSLATE_NOOP (ctx, txt)
 
def draftguitools.gui_tool_utils.redraw_3d_view ()
 
def draftguitools.gui_tool_utils.select_object (arg)
 
def draftguitools.gui_tool_utils.set_mod (args, mod, state)
 
def draftguitools.gui_tool_utils.set_working_plane_to_object_under_cursor (mouseEvent)
 
def draftguitools.gui_tool_utils.set_working_plane_to_selected_object ()
 
def draftguitools.gui_snaps.sync_snap_statusbar_button (button, status)
 
def draftguitools.gui_snaps.sync_snap_toolbar_button (button, status)
 

Variables

dictionary draftguitools.gui_edit.COLORS
 
 draftguitools.gui_groups.Draft_AddConstruction = AddToConstruction
 
 draftguitools.gui_groups.Draft_AddNamedGroup = AddNamedGroup
 
 draftguitools.gui_arcs.Draft_Arc_3Points = Arc_3Points
 
 draftguitools.gui_clone.Draft_Clone = Clone
 
 draftguitools.gui_facebinders.Draft_Facebinder = Facebinder
 
 draftguitools.gui_dimension_ops.Draft_FlipDimension = FlipDimension
 
 draftguitools.gui_labels.Draft_Label = Label
 
 draftguitools.gui_lineslope.Draft_Slope = LineSlope
 
def draftguitools.gui_tool_utils.formatUnit = format_unit
 
def draftguitools.gui_tool_utils.getPoint = get_point
 
def draftguitools.gui_tool_utils.getSupport = get_support
 
def draftguitools.gui_tool_utils.hasMod = has_mod
 
list draftguitools.gui_tool_utils.MODALT = MODS[utils.get_param("modalt", 2)]
 
list draftguitools.gui_tool_utils.MODCONSTRAIN = MODS[utils.get_param("modconstrain", 0)]
 
list draftguitools.gui_tool_utils.MODS = ["shift", "ctrl", "alt"]
 
list draftguitools.gui_tool_utils.MODSNAP = MODS[utils.get_param("modsnap", 1)]
 
 draftguitools.gui_annotationstyleeditor.param = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")
 
 draftguitools.gui_setstyle.PRESETPATH = os.path.join(FreeCAD.getUserAppDataDir(),"Draft","StylePresets.json")
 
def draftguitools.gui_tool_utils.redraw3DView = redraw_3d_view
 
def draftguitools.gui_tool_utils.selectObject = select_object
 
def draftguitools.gui_tool_utils.setMod = set_mod
 
def draftguitools.gui_tool_utils.setWorkingPlaneToObjectUnderCursor = set_working_plane_to_object_under_cursor
 
def draftguitools.gui_tool_utils.setWorkingPlaneToSelectedObject = set_working_plane_to_selected_object
 
 draftguitools.gui_setstyle.translate = FreeCAD.Qt.translate
 
tuple draftguitools.gui_snapper.UNSNAPPABLES = ('Image::ImagePlane',)
 

Detailed Description

Modules that define the workbench GuiCommands to perform actions.

Function Documentation

◆ format_unit()

def draftguitools.gui_tool_utils.format_unit (   exp,
  unit = "mm" 
)
Return a formatting string to set a number to the correct unit.

◆ get_point()

def draftguitools.gui_tool_utils.get_point (   target,
  args,
  mobile = False,
  sym = False,
  workingplane = True,
  noTracker = False 
)
Return a constrained 3D point and its original point.

It is used by the Draft tools.

Parameters
----------
target: object (class)
    The target object with a `node` attribute. If this is present,
    return the last node, otherwise return `None`.

    In the Draft tools, `target` is essentially the same class
    of the Gui command, that is, `self`. Therefore, this method
    probably makes more sense as a class method.

args: Coin event
    The Coin event received from the 3D view.

mobile: bool, optional
    It defaults to `False`.
    If it is `True` the constraining occurs from the location of
    the mouse cursor when `Shift` is pressed; otherwise from the last
    entered point.

sym: bool, optional
    It defaults to `False`.
    If it is `True`, the x and y values always stay equal.

workingplane: bool, optional
    It defaults to `True`.
    If it is `False`, the point won't be projected on the currently
    active working plane.

noTracker: bool, optional
    It defaults to `False`.
    If it is `True`, the tracking line will not be displayed.

Returns
-------
CoinPoint, Base::Vector3, str
    It returns a tuple with some information.

    The first is the Coin point returned by `Snapper.snap`
    or by the `ActiveView`; the second is that same point
    turned into an `App.Vector`,
    and the third is some information of the point
    returned by the `Snapper` or by the `ActiveView`.

References draftguitools.gui_tool_utils.hasMod.

◆ get_snap_statusbar_widget()

def draftguitools.gui_snaps.get_snap_statusbar_widget ( )
Return snap statusbar button.

References Gui.getMainWindow().

Referenced by draftguitools.gui_snaps.sync_snap_statusbar_button().

◆ get_support()

def draftguitools.gui_tool_utils.get_support (   mouseEvent = None)
Return the supporting object and set the working plane.

It saves the current working plane, then sets it to the selected object.

Parameters
----------
mouseEvent: Coin event, optional
    It defaults to `None`.
    Coin event with the mouse, that is, a click.

    If there is a mouse event it calls
    `set_working_plane_to_object_under_cursor`.
    Otherwise, it calls `set_working_plane_to_selected_object`.

Returns
-------
None
    If there was a mouse event, but there was nothing under the cursor.
    Or if the working plane is not `weak`.
    Or if there was an exception with aligning the working plane
    to the component under the cursor.
    Or if more than one object was selected.
    Or if the selected object has many subelements.
    Or if the single subelement is not a `'Face'`.

Coin info
    If there was a mouse event, the `getObjectInfo`
    of the object under the cursor.

App::DocumentObject
    If there was no mouse event, the single selected object
    that contains the single selected face that was used
    to align the working plane.

References draftguitools.gui_tool_utils.setWorkingPlaneToObjectUnderCursor, and draftguitools.gui_tool_utils.setWorkingPlaneToSelectedObject.

◆ has_mod()

def draftguitools.gui_tool_utils.has_mod (   args,
  mod 
)
Check if args has a specific modifier.

Parameters
----------
args: Coin event
    The Coin event received from the 3D view.

mod: str
    A string indicating the modifier, either `'shift'`, `'ctrl'`,
    or `'alt'`.

Returns
-------
bool
    It returns `args["ShiftDown"]`, `args["CtrlDown"]`,
    or `args["AltDown"]`, depending on the passed value of `mod`.

◆ moveToGroup()

def draftguitools.gui_groups.moveToGroup (   group)
Place the selected objects in the chosen group.

Referenced by draftguitools.gui_groups.Ui_AddNamedGroup.accept(), and draftguitools.gui_groups.AddToGroup.proceed().

◆ QT_TRANSLATE_NOOP()

def draftguitools.gui_setstyle.QT_TRANSLATE_NOOP (   ctx,
  txt 
)

◆ redraw_3d_view()

def draftguitools.gui_tool_utils.redraw_3d_view ( )
Force a redraw of 3D view or do nothing if it fails.

◆ select_object()

def draftguitools.gui_tool_utils.select_object (   arg)
Handle the selection of objects depending on buttons pressed.

This is a scene event handler, to be called from the Draft tools
when they need to select an object.
::
    self.call = self.view.addEventCallback("SoEvent", select_object)

Parameters
----------
arg: Coin event
    The Coin event received from the 3D view.

    If it is of type Keyboard and the `ESCAPE` key, it runs the `finish`
    method of the active command.

    If Ctrl key is pressed, multiple selection is enabled until the
    button is released.
    Then it runs the `proceed` method of the active command
    to continue with the command's logic.

◆ set_mod()

def draftguitools.gui_tool_utils.set_mod (   args,
  mod,
  state 
)
Set a specific modifier state in args.

Parameters
----------
args: Coin event
    The Coin event received from the 3D view.

mod: str
    A string indicating the modifier, either `'shift'`, `'ctrl'`,
    or `'alt'`.

state: bool
    The boolean value of `state` is assigned to `args["ShiftDown"]`,
    `args["CtrlDown"]`, or `args["AltDown"]`
    depending on `mod`.

◆ set_working_plane_to_object_under_cursor()

def draftguitools.gui_tool_utils.set_working_plane_to_object_under_cursor (   mouseEvent)
Set the working plane to the object under the cursor.

It tests for an object under the cursor.
If it is found, it checks whether a `'face'` or `'curve'` component
is selected in the object's `Shape`.
Then it tries to align the working plane to that face or curve.

The working plane is only aligned to the face if
the working plane is not `'weak'`.

Parameters
----------
mouseEvent: Coin event
    Coin event with the mouse, that is, a click.

Returns
-------
None
    If no object was found in the 3D view under the cursor.
    Or if the working plane is not `weak`.
    Or if there was an exception with aligning the working plane
    to the component under the cursor.

Coin info
    The `getObjectInfo` of the object under the cursor.

◆ set_working_plane_to_selected_object()

def draftguitools.gui_tool_utils.set_working_plane_to_selected_object ( )
Set the working plane to the selected object's face.

The working plane is only aligned to the face if
the working plane is `'weak'`.

Returns
-------
None
    If more than one object was selected.
    Or if the selected object has many subelements.
    Or if the single subelement is not a `'Face'`.

App::DocumentObject
    The single object that contains a single selected face.

◆ sync_snap_statusbar_button()

◆ sync_snap_toolbar_button()

Variable Documentation

◆ COLORS

dictionary draftguitools.gui_edit.COLORS
Initial value:
1= {
2 "default": Gui.draftToolBar.getDefaultColor("snap"),
3 "black": (0., 0., 0.),
4 "white": (1., 1., 1.),
5 "grey": (.5, .5, .5),
6 "red": (1., 0., 0.),
7 "green": (0., 1., 0.),
8 "blue": (0., 0., 1.),
9 "yellow": (1., 1., 0.),
10 "cyan": (0., 1., 1.),
11 "magenta": (1., 0., 1.)
12}

◆ Draft_AddConstruction

draftguitools.gui_groups.Draft_AddConstruction = AddToConstruction

◆ Draft_AddNamedGroup

draftguitools.gui_groups.Draft_AddNamedGroup = AddNamedGroup

◆ Draft_Arc_3Points

draftguitools.gui_arcs.Draft_Arc_3Points = Arc_3Points

◆ Draft_Clone

draftguitools.gui_clone.Draft_Clone = Clone

◆ Draft_Facebinder

draftguitools.gui_facebinders.Draft_Facebinder = Facebinder

◆ Draft_FlipDimension

draftguitools.gui_dimension_ops.Draft_FlipDimension = FlipDimension

◆ Draft_Label

draftguitools.gui_labels.Draft_Label = Label

◆ Draft_Slope

draftguitools.gui_lineslope.Draft_Slope = LineSlope

◆ formatUnit

def draftguitools.gui_tool_utils.formatUnit = format_unit

◆ getPoint

◆ getSupport

def draftguitools.gui_tool_utils.getSupport = get_support

◆ hasMod

def draftguitools.gui_tool_utils.hasMod = has_mod

◆ MODALT

list draftguitools.gui_tool_utils.MODALT = MODS[utils.get_param("modalt", 2)]

◆ MODCONSTRAIN

list draftguitools.gui_tool_utils.MODCONSTRAIN = MODS[utils.get_param("modconstrain", 0)]

◆ MODS

list draftguitools.gui_tool_utils.MODS = ["shift", "ctrl", "alt"]

◆ MODSNAP

list draftguitools.gui_tool_utils.MODSNAP = MODS[utils.get_param("modsnap", 1)]

◆ param

draftguitools.gui_annotationstyleeditor.param = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")

◆ PRESETPATH

draftguitools.gui_setstyle.PRESETPATH = os.path.join(FreeCAD.getUserAppDataDir(),"Draft","StylePresets.json")

◆ redraw3DView

def draftguitools.gui_tool_utils.redraw3DView = redraw_3d_view

◆ selectObject

def draftguitools.gui_tool_utils.selectObject = select_object

◆ setMod

def draftguitools.gui_tool_utils.setMod = set_mod

◆ setWorkingPlaneToObjectUnderCursor

def draftguitools.gui_tool_utils.setWorkingPlaneToObjectUnderCursor = set_working_plane_to_object_under_cursor

◆ setWorkingPlaneToSelectedObject

def draftguitools.gui_tool_utils.setWorkingPlaneToSelectedObject = set_working_plane_to_selected_object

◆ translate

draftguitools.gui_setstyle.translate = FreeCAD.Qt.translate

Referenced by PartDesignGui::TaskDlgFeatureParameters.accept(), StdCmdOnlineHelpWebsite.activated(), StdCmdFreeCADWebsite.activated(), StdCmdFreeCADUserHub.activated(), StdCmdFreeCADPowerUserHub.activated(), StdCmdFreeCADForum.activated(), StdCmdFreeCADFAQ.activated(), StdCmdGroup.activated(), Gui::SelectionSingleton.addSelection(), Gui::Command.applyCommandData(), PartGui::TaskSweep.clicked(), Gui::DockWnd::ReportOutput.contextMenuEvent(), Gui::StdCmdDownloadOnlineHelp.createAction(), StdCmdAbout.createAction(), StdViewDockUndockFullscreen.createAction(), StdCmdWindowsMenu.createAction(), Gui::DocumentObjectItem.displayStatusInfo(), Gui::Dialog::DlgActivateWindowImp.DlgActivateWindowImp(), Gui::Dialog::DlgProjectInformationImp.DlgProjectInformationImp(), Gui::PythonGroupCommand.languageChange(), StdCmdAbout.languageChange(), StdCmdUserEditMode.languageChange(), StdCmdDrawStyle.languageChange(), Gui::StdCmdDownloadOnlineHelp.languageChange(), StartGui::Workbench.loadStartPage(), PartGui::TaskPrimitives.modifyStandardButtons(), Gui::NavigationStyle.openPopupMenu(), Gui::Command.recreateTooltip(), Gui::MDIView.redoActions(), Gui::Dialog::DlgSettingsNavigation.retranslate(), Gui::LocationDialogUi< Ui >.retranslate(), Gui::ToolBarManager.retranslate(), Gui::LocationUi< Ui >.retranslate(), Gui::LocationImpUi< Ui >.retranslate(), Ui_DlgBindSheet.retranslateUi(), Ui_DlgExpressionInput.retranslateUi(), Ui_DlgProcessorChooser.retranslateUi(), Ui_DlgSheetConf.retranslateUi(), Gui::Dialog::Ui_AboutApplication.retranslateUi(), Gui::Dialog::Ui_Clipping.retranslateUi(), Gui::Dialog::Ui_DemoMode.retranslateUi(), Gui::Dialog::Ui_DlgActivateWindow.retranslateUi(), Gui::Dialog::Ui_DlgAddProperty.retranslateUi(), Gui::Dialog::Ui_DlgAuthorization.retranslateUi(), Gui::Dialog::Ui_DlgCheckableMessageBox.retranslateUi(), Gui::Dialog::Ui_DlgChooseIcon.retranslateUi(), Gui::Dialog::Ui_DlgCreateNewPreferencePack.retranslateUi(), Gui::Dialog::Ui_DlgDisplayProperties.retranslateUi(), Gui::Dialog::Ui_DlgInputDialog.retranslateUi(), Gui::Dialog::Ui_DlgMacroExecute.retranslateUi(), Gui::Dialog::Ui_DlgMacroRecord.retranslateUi(), Gui::Dialog::Ui_DlgMaterialProperties.retranslateUi(), Gui::Dialog::Ui_DlgParameter.retranslateUi(), Gui::Dialog::Ui_DlgParameterFind.retranslateUi(), Gui::Dialog::Ui_DlgPreferencePackManagement.retranslateUi(), Gui::Dialog::Ui_DlgPreferences.retranslateUi(), Gui::Dialog::Ui_DlgProjectInformation.retranslateUi(), Gui::Dialog::Ui_DlgProjectUtility.retranslateUi(), Gui::Dialog::Ui_DlgPropertyLink.retranslateUi(), Gui::Dialog::Ui_DlgRevertToBackupConfig.retranslateUi(), Gui::Dialog::Ui_DlgRunExternal.retranslateUi(), Gui::Dialog::Ui_DlgSettingsColorGradient.retranslateUi(), Gui::Dialog::Ui_DocumentRecovery.retranslateUi(), Gui::Dialog::Ui_DownloadManager.retranslateUi(), Gui::Dialog::Ui_InputVector.retranslateUi(), Gui::Dialog::Ui_MouseButtons.retranslateUi(), Gui::Dialog::Ui_Placement.retranslateUi(), Gui::Dialog::Ui_SceneInspector.retranslateUi(), Gui::Dialog::Ui_TextureMapping.retranslateUi(), Gui::Ui_DlgObjectSelection.retranslateUi(), Gui::Ui_DlgTreeWidget.retranslateUi(), Gui::Ui_VectorListEditor.retranslateUi(), ImageGui::Ui_ImageOrientationDialog.retranslateUi(), InspectionGui::Ui_VisualInspection.retranslateUi(), MeshGui::Ui_DlgEvaluateMesh.retranslateUi(), MeshGui::Ui_DlgEvaluateSettings.retranslateUi(), MeshGui::Ui_DlgRegularSolid.retranslateUi(), MeshPartGui::Ui_CrossSections.retranslateUi(), PartDesignGui::Ui_DlgActiveBody.retranslateUi(), PartDesignGui::Ui_DlgReference.retranslateUi(), PartGui::Ui_CrossSections.retranslateUi(), PartGui::Ui_DlgExtrusion.retranslateUi(), PartGui::Ui_DlgPartBox.retranslateUi(), PartGui::Ui_DlgPartCylinder.retranslateUi(), PartGui::Ui_DlgPartImportIges.retranslateUi(), PartGui::Ui_DlgPartImportStep.retranslateUi(), PartGui::Ui_DlgRevolution.retranslateUi(), PartGui::Ui_SectionCut.retranslateUi(), PartGui::Ui_ShapeFromMesh.retranslateUi(), PointsGui::Ui_DlgPointsRead.retranslateUi(), Ui_PropertiesDialog.retranslateUi(), SketcherGui::Ui_InsertDatum.retranslateUi(), SketcherGui::Ui_SketcherRegularPolygonDialog.retranslateUi(), SketcherGui::Ui_SketchMirrorDialog.retranslateUi(), SketcherGui::Ui_SketchOrientationDialog.retranslateUi(), SketcherGui::Ui_SketchRectangularArrayDialog.retranslateUi(), TechDrawGui::Ui_DlgPageChooser.retranslateUi(), TechDrawGui::Ui_dlgTemplateField.retranslateUi(), TechDrawGui::Ui_SymbolChooser.retranslateUi(), TestGui::Ui_UnitTest.retranslateUi(), Ui_Angle.retranslateUi(), Ui_DlgCustomizeSpNavSettings.retranslateUi(), Ui_DlgStartPreferences.retranslateUi(), Ui_DownloadItem.retranslateUi(), FemGui::Ui_DlgSettingsFemCcxImp.retranslateUi(), FemGui::Ui_DlgSettingsFemElmerImp.retranslateUi(), FemGui::Ui_DlgSettingsFemExportAbaqus.retranslateUi(), FemGui::Ui_DlgSettingsFemGeneralImp.retranslateUi(), FemGui::Ui_DlgSettingsFemGmshImp.retranslateUi(), FemGui::Ui_DlgSettingsFemInOutVtk.retranslateUi(), FemGui::Ui_DlgSettingsFemMaterialImp.retranslateUi(), FemGui::Ui_DlgSettingsFemMystranImp.retranslateUi(), FemGui::Ui_DlgSettingsFemZ88Imp.retranslateUi(), Gui::Dialog::Ui_DlgCustomActions.retranslateUi(), Gui::Dialog::Ui_DlgCustomCommands.retranslateUi(), Gui::Dialog::Ui_DlgCustomKeyboard.retranslateUi(), Gui::Dialog::Ui_DlgCustomToolbars.retranslateUi(), Gui::Dialog::Ui_DlgEditorSettings.retranslateUi(), Gui::Dialog::Ui_DlgGeneral.retranslateUi(), Gui::Dialog::Ui_DlgOnlineHelp.retranslateUi(), Gui::Dialog::Ui_DlgReportView.retranslateUi(), Gui::Dialog::Ui_DlgSettings3DView.retranslateUi(), Gui::Dialog::Ui_DlgSettingsCacheDirectory.retranslateUi(), Gui::Dialog::Ui_DlgSettingsDocument.retranslateUi(), Gui::Dialog::Ui_DlgSettingsImage.retranslateUi(), Gui::Dialog::Ui_DlgSettingsLazyLoaded.retranslateUi(), Gui::Dialog::Ui_DlgSettingsMacro.retranslateUi(), Gui::Dialog::Ui_DlgSettingsNavigation.retranslateUi(), Gui::Dialog::Ui_DlgSettingsPythonConsole.retranslateUi(), Gui::Dialog::Ui_DlgSettingsSelection.retranslateUi(), Gui::Dialog::Ui_DlgSettingsUnits.retranslateUi(), Gui::Dialog::Ui_DlgSettingsViewColor.retranslateUi(), Gui::Dialog::Ui_DlgUnitCalculator.retranslateUi(), Gui::Dialog::Ui_DlgWorkbenches.retranslateUi(), Gui::Ui_TaskElementColors.retranslateUi(), Gui::TaskView::Ui_TaskAppearance.retranslateUi(), Gui::TaskView::Ui_TaskSelectLinkProperty.retranslateUi(), MeshGui::Ui_DlgDecimating.retranslateUi(), MeshGui::Ui_DlgSettingsImportExport.retranslateUi(), MeshGui::Ui_DlgSettingsMeshView.retranslateUi(), MeshGui::Ui_DlgSmoothing.retranslateUi(), MeshGui::Ui_RemeshGmsh.retranslateUi(), MeshGui::Ui_RemoveComponents.retranslateUi(), MeshGui::Ui_Segmentation.retranslateUi(), MeshGui::Ui_SegmentationBestFit.retranslateUi(), MeshGui::Ui_Selection.retranslateUi(), MeshPartGui::Ui_TaskCurveOnMesh.retranslateUi(), MeshPartGui::Ui_Tessellation.retranslateUi(), Ui_MRichTextEdit.retranslateUi(), PartDesignGui::Ui_DlgPrimitives.retranslateUi(), PartDesignGui::Ui_TaskBooleanParameters.retranslateUi(), PartDesignGui::Ui_TaskChamferParameters.retranslateUi(), PartDesignGui::Ui_TaskDraftParameters.retranslateUi(), PartDesignGui::Ui_TaskFeaturePick.retranslateUi(), PartDesignGui::Ui_TaskFilletParameters.retranslateUi(), PartDesignGui::Ui_TaskHelixParameters.retranslateUi(), PartDesignGui::Ui_TaskLinearPatternParameters.retranslateUi(), PartDesignGui::Ui_TaskLoftParameters.retranslateUi(), PartDesignGui::Ui_TaskMirroredParameters.retranslateUi(), PartDesignGui::Ui_TaskMultiTransformParameters.retranslateUi(), PartDesignGui::Ui_TaskPadPocketParameters.retranslateUi(), PartDesignGui::Ui_TaskPipeOrientation.retranslateUi(), PartDesignGui::Ui_TaskPipeParameters.retranslateUi(), PartDesignGui::Ui_TaskPipeScaling.retranslateUi(), PartDesignGui::Ui_TaskPolarPatternParameters.retranslateUi(), PartDesignGui::Ui_TaskRevolutionParameters.retranslateUi(), PartDesignGui::Ui_TaskScaledParameters.retranslateUi(), PartDesignGui::Ui_TaskShapeBinder.retranslateUi(), PartDesignGui::Ui_TaskThicknessParameters.retranslateUi(), PartGui::Ui_DlgBooleanOperation.retranslateUi(), PartGui::Ui_DlgFilletEdges.retranslateUi(), PartGui::Ui_DlgImportExportIges.retranslateUi(), PartGui::Ui_DlgImportExportStep.retranslateUi(), PartGui::Ui_DlgPrimitives.retranslateUi(), PartGui::Ui_DlgProjectionOnSurface.retranslateUi(), PartGui::Ui_DlgSettings3DViewPart.retranslateUi(), PartGui::Ui_DlgSettingsGeneral.retranslateUi(), PartGui::Ui_DlgSettingsObjectColor.retranslateUi(), PartGui::Ui_Location.retranslateUi(), PartGui::Ui_Mirroring.retranslateUi(), PartGui::Ui_TaskAttacher.retranslateUi(), PartGui::Ui_TaskFaceColors.retranslateUi(), PartGui::Ui_TaskLoft.retranslateUi(), PartGui::Ui_TaskOffset.retranslateUi(), PartGui::Ui_TaskShapeBuilder.retranslateUi(), PartGui::Ui_TaskSweep.retranslateUi(), PathGui::Ui_DlgSettingsPathColor.retranslateUi(), Ui_PlaneWidget.retranslateUi(), Ui_Position.retranslateUi(), RaytracingGui::Ui_DlgSettingsRay.retranslateUi(), ReenGui::Ui_FitBSplineSurface.retranslateUi(), ReenGui::Ui_PoissonWidget.retranslateUi(), ReverseEngineeringGui::Ui_Segmentation.retranslateUi(), ReverseEngineeringGui::Ui_SegmentationManual.retranslateUi(), RobotGui::Ui_DlgTrajectorySimulate.retranslateUi(), RobotGui::Ui_TaskRobot6Axis.retranslateUi(), RobotGui::Ui_TaskTrajectory.retranslateUi(), Ui_Sheet.retranslateUi(), SketcherGui::Ui_ConstraintMultiFilterDialog.retranslateUi(), SketcherGui::Ui_ConstraintSettingsDialog.retranslateUi(), SketcherGui::Ui_SketcherSettings.retranslateUi(), SketcherGui::Ui_SketcherSettingsColors.retranslateUi(), SketcherGui::Ui_SketcherSettingsDisplay.retranslateUi(), SketcherGui::Ui_TaskSketcherConstraints.retranslateUi(), SketcherGui::Ui_TaskSketcherElements.retranslateUi(), SketcherGui::Ui_TaskSketcherGeneral.retranslateUi(), SketcherGui::Ui_TaskSketcherValidation.retranslateUi(), Ui_SphereWidget.retranslateUi(), SpreadsheetGui::Ui_DlgSettings.retranslateUi(), SurfaceGui::Ui_GeomFillSurface.retranslateUi(), SurfaceGui::Ui_Sections.retranslateUi(), SurfaceGui::Ui_TaskFilling.retranslateUi(), SurfaceGui::Ui_TaskFillingEdge.retranslateUi(), SurfaceGui::Ui_TaskFillingVertex.retranslateUi(), Ui_TaskActiveView.retranslateUi(), Ui_TaskAnalysisInfo.retranslateUi(), Ui_TaskCreateNodeSet.retranslateUi(), Ui_TaskDlgPathCompound.retranslateUi(), Ui_TaskDriver.retranslateUi(), Ui_TaskEdge2TracParameter.retranslateUi(), Ui_TaskFemConstraint.retranslateUi(), Ui_TaskFemConstraintBearing.retranslateUi(), Ui_TaskFemConstraintContact.retranslateUi(), Ui_TaskFemConstraintDisplacement.retranslateUi(), Ui_TaskFemConstraintFixed.retranslateUi(), Ui_TaskFemConstraintFluidBoundary.retranslateUi(), Ui_TaskFemConstraintForce.retranslateUi(), Ui_TaskFemConstraintHeatflux.retranslateUi(), Ui_TaskFemConstraintInitialTemperature.retranslateUi(), Ui_TaskFemConstraintPlaneRotation.retranslateUi(), Ui_TaskFemConstraintPressure.retranslateUi(), Ui_TaskFemConstraintSpring.retranslateUi(), Ui_TaskFemConstraintTemperature.retranslateUi(), Ui_TaskFemConstraintTransform.retranslateUi(), Ui_TaskHoleParameters.retranslateUi(), Ui_TaskMoveView.retranslateUi(), Ui_TaskObjectName.retranslateUi(), Ui_TaskPostClip.retranslateUi(), Ui_TaskPostCut.retranslateUi(), Ui_TaskPostDataAlongLine.retranslateUi(), Ui_TaskPostDataAtPoint.retranslateUi(), Ui_TaskPostDisplay.retranslateUi(), Ui_TaskPostScalarClip.retranslateUi(), Ui_TaskPostWarpVector.retranslateUi(), Ui_TaskRobotControl.retranslateUi(), Ui_TaskRobotMessages.retranslateUi(), Ui_TaskSketcherMessages.retranslateUi(), Ui_TaskSketcherSolverAdvanced.retranslateUi(), Ui_TaskTetParameter.retranslateUi(), Ui_TaskTrajectoryDressUpParameter.retranslateUi(), Ui_TaskTransformedMessages.retranslateUi(), Ui_TaskWeldingSymbol.retranslateUi(), TechDrawGui::Ui_DlgPrefsTechDrawAdvancedImp.retranslateUi(), TechDrawGui::Ui_DlgPrefsTechDrawAnnotationImp.retranslateUi(), TechDrawGui::Ui_DlgPrefsTechDrawColorsImp.retranslateUi(), TechDrawGui::Ui_DlgPrefsTechDrawDimensionsImp.retranslateUi(), TechDrawGui::Ui_DlgPrefsTechDrawGeneralImp.retranslateUi(), TechDrawGui::Ui_DlgPrefsTechDrawHLRImp.retranslateUi(), TechDrawGui::Ui_DlgPrefsTechDrawScaleImp.retranslateUi(), TechDrawGui::Ui_TaskAlignViews.retranslateUi(), TechDrawGui::Ui_TaskBalloon.retranslateUi(), TechDrawGui::Ui_TaskCenterLine.retranslateUi(), TechDrawGui::Ui_TaskCosmeticLine.retranslateUi(), TechDrawGui::Ui_TaskCosVertex.retranslateUi(), TechDrawGui::Ui_TaskCustomizeFormat.retranslateUi(), TechDrawGui::Ui_TaskDetail.retranslateUi(), TechDrawGui::Ui_TaskDimension.retranslateUi(), TechDrawGui::Ui_TaskGeomHatch.retranslateUi(), TechDrawGui::Ui_TaskHatch.retranslateUi(), TechDrawGui::Ui_TaskLeaderLine.retranslateUi(), TechDrawGui::Ui_TaskLineDecor.retranslateUi(), TechDrawGui::Ui_TaskLinkDim.retranslateUi(), TechDrawGui::Ui_TaskProjection.retranslateUi(), TechDrawGui::Ui_TaskProjGroup.retranslateUi(), TechDrawGui::Ui_TaskRestoreLines.retranslateUi(), TechDrawGui::Ui_TaskRichAnno.retranslateUi(), TechDrawGui::Ui_TaskSectionView.retranslateUi(), TechDrawGui::Ui_TaskSelectLineAttributes.retranslateUi(), TechDrawGui::QGIView.rotateView(), FemGui::ViewProviderFemMeshShapeNetgen.setEdit(), Gui::SelectionSingleton.setPreselect(), Gui::PropertyEditor::PropertyItem.setPropertyName(), Gui::GroupCommand.setup(), Gui::MenuManager.setup(), Gui::ToolBarManager.setup(), Gui::PropertyEditor::PropertyItem.toolTip(), Gui::MDIView.undoActions(), and FemGui::ViewProviderFemPostSphereFunction.updateData().

◆ UNSNAPPABLES

tuple draftguitools.gui_snapper.UNSNAPPABLES = ('Image::ImagePlane',)