What this macro does
Finds BOM or general tables in the active drawing or assembly and exports their visible cells to CSV, with optional Excel automation.
Best for
- Purchasing handoff
- ERP import preparation
- BOM audits
Inputs
- Open drawing or assembly containing BOM/table annotations
Outputs
CSV, XLSX
Filename rules
{document}_table_{index}.csv.
How to use
- Test on copied SOLIDWORKS files first.
- Download and import
BomTableToCsvExcel.basinto a SOLIDWORKS VBA macro project. - Open the required document type: Drawing, Assembly.
- Run
mainfrom the macro editor or assign it to a toolbar button. - Review all generated files before using them for production release.
Limitations
- Exports visible table text, not resolved ERP data.
- Excel export requires Microsoft Excel to be installed.