################################################################################
#
#
#
#
#
#
#
#
#
#
#
#
#
################################################################################
__all__ = [
"newdoc",
"fromHets",
]
import sys
import FreeCAD
import math
import Draft
import Part
try:
return 2
else:
s = f.read()
f.close()
buildque = []
objDict = {}
else:
print objtype
print entity
#checks whether the object is buildable in the current state of the program
if hasDependency:
return False
return False
return True
#calls constructor in the freecad document and updates queue and refList
#arguments: element from buildque, object type, buildque, reference->object dict
#expand and extract elements needed for object construction
#build the placement from the vector and quaternion stored in the xml file
#handler to determine which object constructor to call
if objtype == 'box':
elif objtype == 'cylinder':
elif objtype == 'cone':
elif objtype == 'sphere':
elif objtype == 'torus':
print el
elif objtype == 'line':
elif objtype == 'circle':
if (startangle != None) and (endangle != None):
elif objtype == 'cut':
elif objtype == 'fusion':
#refList[att['base']].Visibility = False
#refList[att['tool']].Visibility = False
elif objtype == 'common':
elif objtype == 'extrude':
float(b['valueY']),
float(b['valueZ'])))
elif objtype == 'rectangle':
#Draft.formatObject(obj)
#all objects are created with the default placement
#now the actual placement is added to the FreeCAD object
if isCreated:
#add the mapping from the reference string(name of object) to the actual object.
#this is needed in order to build 'extended objects'