Functions | |
def | clearExpressionEngine (obj) |
def | getProperty (obj, prop) |
def | getPropertyValueString (obj, prop) |
def | getPublicObject (obj) |
def | isSolid (obj) |
def | isString (string) |
def | isValidBaseObject (obj) |
def | keyValueIter (dictionary) |
def | opProperty (op, prop) |
def | setProperty (obj, prop, value) |
def | toolControllerForOp (op) |
def | toUnicode (string) |
Variables | |
list | NotValidBaseTypeIds = [] |
translate = FreeCAD.Qt.translate | |
def PathScripts.PathUtil.clearExpressionEngine | ( | obj | ) |
clearExpressionEngine(obj) ... removes all expressions from obj. There is currently a bug that invalidates the DAG if an object is deleted that still has one or more expressions attached to it. Use this function to remove all expressions before deletion.
def PathScripts.PathUtil.getProperty | ( | obj, | |
prop | |||
) |
getProperty(obj, prop) ... answer obj's property defined by its canonical name.
Referenced by PathScripts.PathUtil.getPropertyValueString().
def PathScripts.PathUtil.getPropertyValueString | ( | obj, | |
prop | |||
) |
getPropertyValueString(obj, prop) ... answer a string representation of an object's property's value.
References PathScripts.PathUtil.getProperty().
def PathScripts.PathUtil.getPublicObject | ( | obj | ) |
getPublicObject(obj) ... returns the object which should be used to reference a feature of the given object.
References PathScripts.PathUtil.getPublicObject().
Referenced by PathScripts.PathUtil.getPublicObject().
def PathScripts.PathUtil.isSolid | ( | obj | ) |
isSolid(obj) ... return True if the object is a valid solid.
def PathScripts.PathUtil.isString | ( | string | ) |
isString(string) ... return True if string is a string, regardless of string type and python version.
def PathScripts.PathUtil.isValidBaseObject | ( | obj | ) |
isValidBaseObject(obj) ... returns true if the object can be used as a base for a job.
References draftgeoutils.general.isNull().
def PathScripts.PathUtil.keyValueIter | ( | dictionary | ) |
keyValueIter(dict) ... return iterable object over dictionary's (key,value) tuples.
def PathScripts.PathUtil.opProperty | ( | op, | |
prop | |||
) |
opProperty(op, prop) ... return the value of property prop of the underlying operation (or None if prop does not exist)
References PathScripts.PathUtil.opProperty().
Referenced by PathScripts.PathUtil.opProperty(), and PathScripts.PathUtil.toolControllerForOp().
def PathScripts.PathUtil.setProperty | ( | obj, | |
prop, | |||
value | |||
) |
setProperty(obj, prop, value) ... set the property value of obj's property defined by its canonical name.
def PathScripts.PathUtil.toolControllerForOp | ( | op | ) |
toolControllerForOp(op) ... return the tool controller used by the op. If the op doesn't have its own tool controller but has a Base object, return its tool controller. Otherwise return None.
References PathScripts.PathUtil.opProperty().
def PathScripts.PathUtil.toUnicode | ( | string | ) |
toUnicode(string) ... returns a unicode version of string regardless of the python version.
list PathScripts.PathUtil.NotValidBaseTypeIds = [] |
PathScripts.PathUtil.translate = FreeCAD.Qt.translate |