All available variables for custom properties (and cut lists)

Below is every single variable that you can use within SOLIDWORKS custom properties and notes.

Most can be used with parts and assemblies.

Some can only be used for sheet metal or weldment bodies.

Only a few can be used for drawings.

How to work with custom properties and variables

For more background information on custom properties and cut lists, check out this article. These two articles go hand in hand.

Notes

  1. Not all variables are in every dropdown menu. Sometimes they still work though.
  2. SOLIDWORKS makes regular improvements, so this list might change. Please let us know if you found an error or a missing property.
  3. The variable names are not case sensitive, so “LENGTH” and “length” both work.
  4. To use file properties:
    1. You may need to write the variable name a second time between brackets.
    2. Example: $PRP:”SW-Author(Author)”
    3. Sometimes it works without the second name in brackets, sometimes it does not.
  5. The bounding box introduced in SOLIDWORKS 2018 uses properties from the feature.
    1. It uses <property>@@@<feature>@@<configuration>@<file name>
    2. Example: “SW-Total Bounding Box Length@@@Bounding Box@@Default<As Machined>@Strongback.SLDPRT”

All variables

  See note Model Cut list
Part Assembly Drawing Weldment Sheet metal
File properties
Author SW-Author *4 x x x
BOM part number / name SW-BOM Part Number x x x
Comments SW-Comments x x x
Configuration name SW-Configuration Name x x x
Date created SW-Created Date x x x
Date modified SW-Last Saved Date x x x
Date today – long SW-Long date x x x
Date today – short SW-Short date x x x
File name SW-File Name x x x
Folder name SW-Folder Name x x x
Keywords SW-Keywords x x x
Last saved by SW-Last Saved By x x x
Subject SW-Subject x x x
Title SW-Title x x x
Drawings
Current sheet name SW-Sheet Name x
Current sheet format size SW-Sheet Format Size x
Current sheet number SW-Current Sheet x
Current sheet scale SW-Sheet Scale x
Drawing template size SW-Template size x
Sheet count SW-Total Sheets x
View name SW-View Name x
View scale SW-View Scale x
Physical properties
Axes of inertia SW-ix
SW-iy
SW-iz
x x x x
Bounding box
(SOLIDWORKS 2018 and newer
Requires bounding box feature)
SW-Total Bounding Box Length
SW-Total Bounding Box Width
SW-Total Bounding Box Thickness
SW-Total Bounding Box Volume
*5 x x
Center of mass SW-CenterOfMassX
SW-CenterOfMassY
SW-CenterOfMassZ
x x x x
Density SW-Density x x x x
Mass SW-Mass x x x x
Material SW-Material x x x x
Moments of inertia
(Taken at center of mass
Aligned with output coordinate system)
SW-Lxx
SW-Lxy
SW-Lxz
SW-Lyx
SW-Lyy
SW-Lyz
SW-Lzx
SW-Lzy
SW-Lzz
x x x x
Principal moments of inertia SW-Px
SW-Py
SW-Pz
x x x x
Surface area SW-SurfaceArea x x x x
Volume SW-Volume x x x x
Weldment
Length Length x
Angle Angle1
Angle2
x
Description Description x
Material Material x
Total length Total length x
Quantity Quantity x
Unit of measure (= usually length) Unit_of_measure x
Sheet metal
Bend allowance SW-Bend Allowance x
Bend radius SW-Bend Radius x
Bounding box SW-Bounding Box Length
SW-Bounding Box Width
SW-Bounding Box Area
SW-Bounding Box Area-Blank
x
Cutting length SW-Cutting Length-Outer
SW-Cutting Length-Inner
x
Flattened mass SW-FlattenedMass x
Number of bends SW-Bends x
Number of cut outs SW-Cut Outs x
Surface treatment SW-Surface Treatment x
Thickness SW-Sheet Metal Thickness x
DimXpert block tolerances
Angular block tolerance SW-AngBlockTol x x x
Angular general block tolerance SW-AngGeneralBlockTol x x x
Linear block tolerance 1, 2 and 3 SW-LinBlockTol1
SW-LinBlockTol2
SW-LinBlockTol3
x x x
Linear block tolerance decimals SW-LinBlockTol1Decimal
SW-LinBlockTol2Decimal
SW-LinBlockTol3Decimal
x x x
Linear general block tolerance SW-LinGeneralBlockTol x x x
Multibody costing
For entire part
Manufacturing cost SW-Cost-ManufacturingCost x x x x
Material cost SW-Cost-MaterialCost x x x x
Template name SW-Cost-TemplateName x x x x
Total cost SW-Cost-TotalCost x x x x
Per body
Cost calculation time SW-Cost-CostCalculationTime x x x x
Material name SW-Cost-MaterialName x x x x
Stock type SW-Cost-StockType x x x x
Stock size SW-Cost-StockSize x x x x
Routing
Pipe length SWPipeLength
See note Part Assembly Drawing Weldment Sheet metal
Model Cut list

 

Have you found a variable that’s not in the table? Email us at blog@cadbooster.com and we’ll add it.

Don't miss the next post. Get a free add-in.

Subscribe to our newsletter and get our TimeSavers add-in for free.