A table listing all available $prp options for Drawings' Linked Properties.
SOLIDWORKS Drawings have the ability to link properties directly back to the component the Drawing represents. This is a really useful tool for, say, creating Drawing Templates, so that they will auto-populate as many fields as possible simply by inserting the component into the drawing.
However, the list of available properties that can be directly linked this way is not endless. Additional Custom Properties can be added and linked in drawings, but the feature is slightly more limited, and will not, for example, carry over in a template.
As such, it's helpful to know which properties link directly in Drawings, how they are intended to be used, and what variable they are tied into. For each of the variables below, they can be added to a Note or other text field by adding $PRP:"<TheVariable>" to the text string, while of course replacing <TheVariable> with the listed variable below of your choosing.
This table represents all the system-defined properties that exist within all SOLIDWORKS documents.
Property Name | Value |
SW-Author | Author field in the Summary Information dialog box. |
SW-Comments | Comments field in the Summary Information dialog box. |
SW-Configuration Name | Configuration name in the ConfigurationManager of the part or assembly. |
SW-Created Date | Created field in the Summary Information dialog box. |
SW-File Name | The document name with no extension. |
SW-Folder Name | The document folder with a backslash at the end. |
SW-Keywords | Keywords field in Summary Information dialog box |
SW-Last Saved By | Last Saved By field in Summary Information dialog box |
SW-Last Saved Date | Last Saved field in Summary Information dialog box |
SW-Long Date | The current date in long format. |
SW-Short Date | The current date in short format. |
SW-Subject | Subject field in Summary Information dialog box |
SW-Title | Title field in Summary Information dialog box |
Drawings have an additional set of system-defined properties, per the table below.
Property Name | Value |
SW-Current Sheet | The sheet number of the active sheet. |
SW-Sheet Format Size | The sheet size of the active sheet format. |
SW-Sheet Name | The name of the active sheet. |
SW-Sheet Scale | The scale of the active sheet |
SW-Template Size | The template size of the drawing template. |
SW-Total Sheets | The total number of sheets in the active drawing document. |
If SOLIDWORKS cannot find a property value, the note displays ERROR![variable name]. To show or hide the error message, click View > Annotation Link Errors.
A linked note can include additional text, and it can include links to more than one property. For example, to display the current sheet number and the total number of sheets, you can add this note:
SHEAT $PRP:"SW-Current Sheet" OF $PRP:"SW-Total Sheets"
That note in the first sheet of a two-sheet drawing will display:
SHEET 1 OF 2
If you have any questions or concerns, please don't hesitate to reach out to our Technical Support Team. We are always happy to help.