import cadquery as cq w0=cq.Workplane('YZ',origin=(50,0,0)) r=w0.sketch().rect(30,54).rect(22,30,mode='s').finalize().extrude(-100)