circle = sketch.addCircle(0, 0, 10)
model.do()
- base = [sketch.selectFace(circle.result())]
+ base = sketch.selectFace(circle.result())
self.extrusion = model.addExtrusion(self.part, base, 10, 0)
model.do()
circle = sketch.addCircle(0, 0, 10)
model.do()
- base = [sketch.selectFace(circle.result())]
+ base = sketch.selectFace(circle.result())
extrusion = model.addExtrusion(self.part, base, 10, 0)
model.do()
model.do()
- base = [base_sketch.selectFace(base_circle.result())]
- to_object = to_sketch.selectFace(to_circle.result())
- from_object = from_sketch.selectFace(from_circle.result())
+ base = base_sketch.selectFace(base_circle.result())
+ to_object = to_sketch.selectFace(to_circle.result())[0]
+ from_object = from_sketch.selectFace(from_circle.result())[0]
extrusion = model.addExtrusion(self.part, base,
to_object, 15,
from_object, 20)
model.do()
- to_object = to_sketch.selectFace(to_circle.result())
- from_object = from_sketch.selectFace(from_circle.result())
+ to_object = to_sketch.selectFace(to_circle.result())[0]
+ from_object = from_sketch.selectFace(from_circle.result())[0]
self.extrusion.setPlanesAndOffsets(to_object, 15, from_object, 20)
model.do()
- base = [base_sketch.selectFace(circle.lastResult())]
+ base = base_sketch.selectFace(circle.lastResult())
axis_object = Selection(axis_sketch.firstResult(),
line.firstResult().shape())
model.do()
- base = [base_sketch.selectFace(circle.lastResult())]
+ base = base_sketch.selectFace(circle.lastResult())
axis_object = Selection(axis_sketch.firstResult(),
line.firstResult().shape())
model.do()
- base = [base_sketch.selectFace(base_circle.result())]
+ base = base_sketch.selectFace(base_circle.result())
axis_object = Selection(axis_sketch.firstResult(),
line.firstResult().shape())
- to_obejct = to_sketch.selectFace(to_circle.result())
- from_object = from_sketch.selectFace(from_circle.result())
+ to_obejct = to_sketch.selectFace(to_circle.result())[0]
+ from_object = from_sketch.selectFace(from_circle.result())[0]
revolution = model.addRevolution(self.part, base, axis_object,
to_obejct, 15,
model.do()
- base = [base_sketch.selectFace(base_circle.result())]
+ base = base_sketch.selectFace(base_circle.result())
axis_object = Selection(axis_sketch.firstResult(),
line.firstResult().shape())
- to_obejct = to_sketch.selectFace(to_circle.result())
- from_object = from_sketch.selectFace(from_circle.result())
+ to_obejct = to_sketch.selectFace(to_circle.result())[0]
+ from_object = from_sketch.selectFace(from_circle.result())[0]
self.revolution.setPlanesAndOffsets(to_obejct, 15, from_object, 20)