import cadquery as cq w0=cq.Workplane('XY',origin=(0,0,12)) r=w0.workplane(offset=-24/2).cylinder(24,50)