import cadquery2 as cq from cadquery2 import exporters lower_stands = ( cq.Sketch() .push([(0,0), (58, 0), (58, 23), (0, 23)]) .circle(5, mode="a") ) higher_stands = ( cq.Sketch() .push([(0,0), (58, 0), (58, 23), (0, 23)]) .circle(2.65, mode="a") ) model = ( cq.Workplane("XY") .workplane() .box(75, 40, 2) .faces(">Z") .workplane(centerOption="CenterOfBoundBox") .center(-29, -11.5) .placeSketch(lower_stands) .extrude(3) .workplane() .placeSketch(higher_stands) .extrude(8) ) exporters.export(model, "cpu_holder.stl")