What this macro does
Reads a CSV file containing file paths, configuration names and property values, then updates SOLIDWORKS custom properties.
Best for
- Part number cleanup
- Revision property updates
- Title block data repair
Inputs
- CSV with FilePath, Configuration, PropertyName, Value columns
Outputs
Updated custom properties
Filename rules
Does not export files; writes custom properties to the listed documents.
How to use
- Test on copied SOLIDWORKS files first.
- Download and import
BatchCustomPropertyUpdateFromCsv.basinto a SOLIDWORKS VBA macro project. - Open the required document type: Part, Assembly, Drawing.
- Run
mainfrom the macro editor or assign it to a toolbar button. - Review all generated files before using them for production release.
Limitations
- Always test on copied files first.
- CSV parsing supports quoted fields but should be kept simple for production use.