Automate SolidWorks Drawing Generation — Batch Layouts, Title Block Fill, and BOM Export
Generating SolidWorks drawings manually — open part, new drawing, place views, fill title block, insert BOM, save PDF — is fine for a handful of parts. At scale it becomes a bottleneck. The SolidWorks API exposes every step of that workflow, and a well-structured macro or add-in can generate complete drawing packages for an entire assembly in minutes. This post covers the full pipeline: creating drawing documents from a template, adding model views, populating title block annotations from custom properties, inserting BOMs, and exporting to PDF. Both VBA (for quick scripts) and C# (for production add-ins) approaches are shown. ...