codestack icon indicating copy to clipboard operation
codestack copied to clipboard

Bom tables

Open purenature2002-ai opened this issue 1 month ago • 0 comments

​I need a macro that will automatically generate Bill of Materials (BOM) tables from SolidWorks for multiple selected assemblies. ​Key Requirements: ​Multiple Selection: The macro must work on multiple assemblies selected at the same time (e.g., in the FeatureManager tree or via a selection window). ​Parts Only (Flattened BOM): For each selected assembly, the generated BOM must only list the parts, and exclude the sub-assemblies themselves. This means it needs to look into all levels of sub-assemblies and list only the terminal components (parts). ​Automatic Saving: The macro needs to automatically save the generated BOM for each assembly into a designated folder. ​File Naming: The saved file name for each BOM must be the name of the corresponding selected assembly. ​File Format: The files should be saved as Excel files (.xlsx or .xls).

purenature2002-ai avatar Nov 27 '25 11:11 purenature2002-ai