Attempting to track down an exception with importing a STEP file that's masked by the try/except.
This commit is contained in:
parent
a21fc64f8c
commit
eab2338cf3
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user