What this macro does
Exports each configuration of the active part or assembly as an STL file.
Best for
- 3D printing
- Prototype sharing
- Configured product previews
Inputs
- Open saved .SLDPRT or .SLDASM
Outputs
STL
Filename rules
{filename}_{configuration}.stl.
How to use
- Test on copied SOLIDWORKS files first.
- Download and import
ExportConfigurationsToStl.basinto a SOLIDWORKS VBA macro project. - Open the required document type: Part, Assembly.
- Run
mainfrom the macro editor or assign it to a toolbar button. - Review all generated files before using them for production release.
Limitations
- Uses the current SOLIDWORKS STL export options.
- Hidden bodies and suppressed features follow the active configuration state.