All available variables for custom properties (and cut lists)

These are all the variables that you can use within SOLIDWORKS custom properties.

Most can be used with parts and assemblies

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

But unfortunately, not a single one can be used for drawings.

What does all of this even mean?

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 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”
  4. The variable names are not case sensitive, so “LENGTH” and “length” both work.

All variables

  Model Cut list
Part Assembly Weldment Sheet metal
Physical properties
Axes of inertia SW-ix
SW-iy
SW-iz
x x x x
Bounding box
(requires SOLIDWORKS 2018 and bounding box feature)
SW-Total Bounding Box Length
SW-Total Bounding Box Width
SW-Total Bounding Box Thickness
SW-Total Bounding Box Volume
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
Total length Total length x
Quantity Quantity 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
Part Assembly Weldment Sheet metal
Model Cut list

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

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