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(-30, -2.5).box(20, 5, 5) result = result.workplane(offset=-height/2+10).center(-7.5, 0).box(5, 5, 20) cq.exporters.export(result, "/home/deck/model_files/hair_dryer_holder.step") try: show_object(result) except NameError: pass