Generate editable CAD script text for a simple circular flange with outer diameter, optional bore, thickness, bolt circle, and bolt-hole pattern.
The generator checks flange diameter relationships, bolt circle fit, bolt-hole count, chamfer size, and selected script target before emitting a conservative flange template.
It keeps generated scripts hidden until an explicit action succeeds, then shows the script, result-driven preview, warnings, downloads, assumptions, limitations, references, and related workflows.