
SOLIDWORKS API: Automate File Naming from Custom Properties
Use the SOLIDWORKS API to automate file naming from custom properties: read values, build a valid name, Save As safely, and handle it in PDM.
Free SOLIDWORKS VBA macros for parts, assemblies, drawings and BOMs. Copy the code, run it, and adapt it to your workflow.

Use the SOLIDWORKS API to automate file naming from custom properties: read values, build a valid name, Save As safely, and handle it in PDM.
The SOLIDWORKS 2027 API adds frozen models, a legacy sheet metal upgrade, named exploded views in drawings and balloon quantity spacing. Here is each new member with VBA macro examples.

Learn SOLIDWORKS VBA from scratch: record vs write, the VBA editor, swApp and ActiveDoc, and a first macro that reads and writes custom properties.

Export every sheet of a SOLIDWORKS drawing to its own PDF file in one click.

Add a parallel mate between two selected faces, planes or edges in a SOLIDWORKS assembly.

Find and delete unused sketches, planes, axes, points and coordinate systems in a SOLIDWORKS model.