from cadquery import exporters from cq_warehouse.extensions import Workplane import cadquery as cq result = Workplane() length = 34 width = 10 height = 80 # l, w, h result = result.box(length, width, height) result = ( result.workplane(offset=-10) .center(0, 0) .box(length / 2, width, height, combine="cut") ) result = ( result.workplane(offset=-30) .center(10, 0) .box(length / 2, width, height, combine="cut") ) result = result.workplane(offset=-height / 2).center(-40, -2.5).box(30, 5, 5) result = result.workplane(offset=-height / 2 + 5).center(-12.5, 0).box(5, 5, 8.5) cq.exporters.export(result, "/home/deck/model_files/brush_holder.stl") try: show_object(result) except NameError: pass