Generate a browser-local FreeCAD Python script template for simple plates, boxes, cylinders, bracket notes, flange notes, and shaft notes without running FreeCAD.
The generator validates safe part names, positive dimensions, optional hole values, and comment preferences before emitting an editable FreeCAD-style Python text template with imports, document creation, primitive geometry, cutout comments, and export guidance.
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.