Attempting to track down an exception with importing a STEP file that's masked by the try/except.

This commit is contained in:
Jeremy Wright 2014-08-18 15:16:05 -04:00
parent a21fc64f8c
commit eab2338cf3

View File

@ -50,12 +50,12 @@ def importStep(fileName):
"""
#Now read and return the shape
try:
rshape = Part.read(fileName)
# try:
rshape = Part.read(fileName)
r = Shape.cast(rshape)
#print "loadStep: " + str(r)
#print "Faces=%d" % cadquery.CQ(r).solids().size()
return cadquery.CQ(r)
except:
raise ValueError("STEP File Could not be loaded")
r = Shape.cast(rshape)
#print "loadStep: " + str(r)
#print "Faces=%d" % cadquery.CQ(r).solids().size()
return cadquery.CQ(r)
# except:
# raise ValueError("STEP File Could not be loaded")