Draft Namespace Reference

Functions

def array (objectslist, arg1, arg2, arg3, arg4=None)
 
def autogroup (obj)
 
def clone (obj, delta=None, forcedraft=False)
 
def compareObjects (obj1, obj2)
 
def cut (object1, object2)
 
def dimSymbol (symbol=None, invert=False)
 
def downgrade (objects, delete=False, force=None)
 
def draftify (objectslist, makeblock=False, delete=True)
 
def epsilon ()
 
def extrude (obj, vector, solid=False)
 
def formatObject (target, origin=None)
 
def fuse (object1, object2)
 
def get3DView ()
 
def getCloneBase (obj, strict=False)
 
def getDXF (obj, direction=None)
 
def getGroupContents (objectslist, walls=False, addgroups=False)
 
def getGroupNames ()
 
def getMovableChildren (objectslist, recursive=True)
 
def getObjectsOfType (objectslist, typ)
 
def getParam (param, default=None)
 
def getParamType (param)
 
def getRealName (name)
 
def getrgb (color, testbw=True)
 
def getSelection ()
 
def getSelectionEx ()
 
def getSVG (obj, scale=1, linewidth=0.35, fontsize=12, fillstyle="shape color", direction=None, linestyle=None, color=None, linespacing=None, techdraw=False, rotation=0)
 
def getType (obj)
 
def heal (objlist=None, delete=True, reparent=True)
 
def isClone (obj, objtype, recursive=False)
 
def loadSvgPatterns ()
 
def loadTexture (filename, size=None)
 
def makeAngularDimension (center, angles, p3, normal=None)
 
def makeArray (baseobject, arg1, arg2, arg3, arg4=None, name="Array")
 
def makeBezCurve (pointslist, closed=False, placement=None, face=None, support=None, Degree=None)
 
def makeBlock (objectslist)
 
def makeBSpline (pointslist, closed=False, placement=None, face=None, support=None)
 
def makeCircle (radius, placement=None, face=None, startangle=None, endangle=None, support=None)
 
def makeCopy (obj, force=None, reparent=False)
 
def makeDimension (p1, p2, p3=None, p4=None)
 
def makeDrawingView (obj, page, lwmod=None, tmod=None, otherProjection=None)
 
def makeEllipse (majradius, minradius, placement=None, face=True, support=None)
 
def makeFacebinder (selectionset, name="Facebinder")
 
def makeLine (p1, p2)
 
def makePathArray (baseobject, pathobject, count, xlate=None, align=False, pathobjsubs=[])
 
def makePoint (X=0, Y=0, Z=0, color=None, name="Point", point_size=5)
 
def makePolygon (nfaces, radius=1, inscribed=True, placement=None, face=None, support=None)
 
def makeRectangle (length, height, placement=None, face=None, support=None)
 
def makeShape2DView (baseobj, projectionVector=None, facenumbers=[])
 
def makeShapeString (String, FontFile, Size=100, Tracking=0)
 
def makeSketch (objectslist, autoconstraints=False, addTo=None, delete=False, name="Sketch", radiusPrecision=-1)
 
def makeText (stringslist, point=Vector(0, 0, 0), screen=False)
 
def makeVisGroup (group=None, name="VisGroup")
 
def makeWire (pointslist, closed=False, placement=None, face=None, support=None)
 
def mirror (objlist, p1, p2)
 
def move (objectslist, vector, copy=False)
 
def offset (obj, delta, copy=False, bind=False, sym=False, occ=False)
 
def precision ()
 
def printShape (shape)
 
def QT_TRANSLATE_NOOP (ctxt, txt)
 
def removeHidden (objectslist)
 
def rotate (objectslist, angle, center=Vector(0, 0, 0), axis=Vector(0, 0, 1), copy=False)
 
def scale (objectslist, delta=Vector(1, 1, 1), center=Vector(0, 0, 0), copy=False, legacy=False)
 
def select (objs=None)
 
def setParam (param, value)
 
def shapify (obj)
 
def stringencodecoin (ustr)
 
def svgpatterns ()
 
def tolerance ()
 
def typecheck (args_and_types, name="?")
 
def ungroup (obj)
 
def upgrade (objects, delete=False, force=None)
 

Variables

list arrowtypes = ["Dot","Circle","Arrow","Tick"]
 
bool gui = True