Parametric Flange DXF Generator (Python CAD Automation)

A Python script (ezdxf) that generates a fully layered 2D flange drawing from five numbers: outer diameter, bore, pitch-circle diameter, number of bolt holes and hole size. Both drawings shown were produced by the same script with different inputs (real output, rendered from the DXF files). Features: - Separate layers for outline, holes, centre lines and dimensions - Automatic diameter dimensions and hole callout - Validates that holes fit between the bore and outer edge before drawing - DXF opens in AutoCAD, LibreCAD, FreeCAD and CAM software - Easy to extend to batch mode from an Excel/CSV list of sizes Tools: Python 3, ezdxf, matplotlib (preview rendering).
Published
dxf cad-automation python ezdxf