draftutils.utils Namespace Reference

Functions

def compare_objects (obj1, obj2)
 
def epsilon ()
 
def filter_objects_for_modifiers (objects, isCopied=False)
 
def find_doc (doc=None)
 
def find_object (obj, doc=None)
 
def get_clone_base (obj, strict=False, recursive=True)
 
def get_objects_of_type (objects, typ)
 
def get_param (param, default=None)
 
def get_param_type (param)
 
def get_real_name (name)
 
def get_rgb (color, testbw=True)
 
def get_type (obj)
 
def is_clone (obj, objtype=None, recursive=False)
 
def is_closed_edge (edge_index, object)
 
def load_svg_patterns ()
 
def precision ()
 
def print_header (name, description, debug=True)
 
def print_shape (shape)
 
def set_param (param, value)
 
def shapify (obj)
 
def string_encode_coin (ustr)
 
def svg_patterns ()
 
def tolerance ()
 
def type_check (args_and_types, name="?")
 
def use_instead (function, version="")
 
def utf8_decode (text)
 

Variables

dictionary ANNOTATION_STYLE
 
list ARROW_TYPES = ["Dot", "Circle", "Arrow", "Tick", "Tick-2"]
 
list arrowtypes = ARROW_TYPES
 
def compareObjects = compare_objects
 
def filterObjectsForModifiers = filter_objects_for_modifiers
 
def getCloneBase = get_clone_base
 
def getObjectsOfType = get_objects_of_type
 
def getParam = get_param
 
def getParamType = get_param_type
 
def getRealName = get_real_name
 
def getrgb = get_rgb
 
def getType = get_type
 
def isClone = is_clone
 
def isClosedEdge = is_closed_edge
 
def loadSvgPatterns = load_svg_patterns
 
 param = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")
 
def printShape = print_shape
 
def setParam = set_param
 
def stringencodecoin = string_encode_coin
 
def svgpatterns = svg_patterns
 
def typecheck = type_check