This is no longer true, so some python scripts might now raise an AttributeError :
Code: Select all
<class 'AttributeError'>: 'Part. ...' object has no attribute 'Construction'
Code: Select all
if a_sketch.Geometry[i].Construction:
...
Code: Select all
try:
construction = a_sketch.Geometry[i].Construction
except AttributeError:
construction = a_sketch.getConstruction(i)
if construction:
...