Bom tables
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).