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 please let us know if you found a missing property.
  3. The variable names are sometimes case-sensitive.
    1. Usually “LENGTH” and “length” both work fine.
    2. Check other capitalizations if you cannot get your property to work. Select the variable from a dropdown or check official SOLIDWORKS documentation for its spelling.
    3. Please let us know when you found a place where capitalization is important. We’ll add it to this post and ask SOLIDWORKS to fix it.
  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 [email protected]@@Bounding [email protected]@Default<As Machined>@Strongback.SLDPRT”
  6. These routing properties are not really variables. SOLIDWORKS uses custom properties with this name in routing BOMs.
    1. Help article about routing BOMs

All variables

 See noteModelCut list
PartAssemblyDrawingWeldment Sheet metal
File properties
AuthorSW-Author*4xxx
BOM part number / nameSW-BOM Part Numberxxx
CommentsSW-Commentsxxx
Configuration name *3SW-Configuration Namexxx
Date createdSW-Created Datexxx
Date modifiedSW-Last Saved Datexxx
Date today – longSW-Long datexxx
Date today – shortSW-Short datexxx
FilenameSW-File Namexxx
Folder nameSW-Folder Namexxx
KeywordsSW-Keywordsxxx
Last saved bySW-Last Saved Byxxx
SubjectSW-Subjectxxx
TitleSW-Titlexxx
Drawings
Current sheet nameSW-Sheet Namex
Current sheet format sizeSW-Sheet Format Sizex
Current sheet numberSW-Current Sheetx
Current sheet scaleSW-Sheet Scalex
Drawing template sizeSW-Template sizex
Sheet countSW-Total Sheetsx
View nameSW-View Namex
View scaleSW-View Scalex
Physical properties
Axes of inertiaSW-ix
SW-iy
SW-iz
xxxx
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
*5xx
Center of massSW-CenterOfMassX
SW-CenterOfMassY
SW-CenterOfMassZ
xxxx
DensitySW-Densityxxxx
MassSW-Massxxxx
MaterialSW-Materialxxxx
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
xxxx
Principal moments of inertiaSW-Px
SW-Py
SW-Pz
xxxx
Surface areaSW-SurfaceAreaxxxx
VolumeSW-Volumexxxx
Weldment & sheet metal
DescriptionIs filled automatically
(e.g. sheet, pipe)
xx
Cut list item nameSW-CutListItemNamexx
QuantityQuantityxx
Weldment
LengthLengthx
AngleAngle1
Angle2
x
Angle description between two cut ends
(–, Same, Opposite or Out Of Plane)
Angle Directionx
Angle along the longitudinal axis between two cut ends
(0-180 degrees)
Angle Rotationx
Total lengthTotal lengthx
Unit of measure (= usually length)Unit_of_measurex
Sheet metal
Bend allowanceSW-Bend Allowancex
Bend radiusSW-Bend Radiusx
Bounding boxSW-Bounding Box Length
SW-Bounding Box Width
SW-Bounding Box Area
SW-Bounding Box Area-Blank
x
Cutting lengthSW-Cutting Length-Outer
SW-Cutting Length-Inner
x
Flattened massSW-FlattenedMassx
Number of bendsSW-Bendsx
Number of cut outsSW-Cut Outsx
Surface treatmentSW-Surface Treatmentx
ThicknessSW-Sheet Metal Thicknessx
DimXpert block tolerances
Angular block toleranceSW-AngBlockTolxxx
Angular general block toleranceSW-AngGeneralBlockTolxxx
Linear block tolerance 1, 2 and 3SW-LinBlockTol1
SW-LinBlockTol2
SW-LinBlockTol3
xxx
Linear block tolerance decimalsSW-LinBlockTol1Decimal
SW-LinBlockTol2Decimal
SW-LinBlockTol3Decimal
xxx
Linear general block toleranceSW-LinGeneralBlockTolxxx
Multibody costing
For entire part
Manufacturing costSW-Cost-ManufacturingCostxxxx
Material costSW-Cost-MaterialCostxxxx
Template nameSW-Cost-TemplateNamexxxx
Total costSW-Cost-TotalCostxxxx
Per body
Cost calculation timeSW-Cost-CostCalculationTimexxxx
Material nameSW-Cost-MaterialNamexxxx
Stock typeSW-Cost-StockTypexxxx
Stock sizeSW-Cost-StockSizexxxx
Routing
Part numberSWbompartno*6
Pipe lengthSWPipeLength
See notePartAssemblyDrawingWeldment Sheet metal
ModelCut list

Check out our other article to learn how to use these variables.

Have you found a variable that’s not in the table? Email us at [email protected] and we’ll add it. Thanks for your help!

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

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