Mapping Model Custom Properties to Drawing File Cards

Article by Steven Darcey on Apr 12, 2015

For SOLIDWORKS drawings, you can map a variable to a custom property of the model that the drawing is based on instead of a custom property of the drawing so the property value of the model is copied into the drawing’s file card. When the drawing is saved in SOLIDWORKS, the linked properties are copied from the model and updated in the drawings file card. This example describes how to define a Description variable for .slddrw files to display the Description custom property of the model that the drawing is based on.

For this mapping to work, the following must be met:

  • The drawing must be saved in SOLIDWORKS with the Enterprise PDM SOLIDWORKS add-in enabled
  • If a value in a model is updated, the drawing data card does not display the updated value until the drawing is opened and resaved.
  • The $PRPSHEET mapping is read-only. You cannot modify the model property value by modifying the property value in the drawing data card.

To map the custom property of a model to the file card of a drawing:

  1. Edit or create the variable Description
  2. Click New Attribute
  3. Under Selected Attribute, specify the attributes of the Description custom property of the drawing:
    1. For Block name, select CustomProperty
    2. For Attribute name, type Description
    3. Type the file extensions to use the variable mapping, separated by commas. The extension list must include slddrw and can also include other SOLIDWORKS extensions.
  4. Click New Attribute and specify the attributes for the description custom property of the model:
    1. For Block name, type $PRPSHEET (This must be all uppercase)
    2. For Attribute name, type Description, or the name of the model’s custom property from which you are copying the value
    3. Type the file extension slddrw
  5. Click OK
  6. In the Card Editor, open the SOLIDWORKS Drawing file card
  7. Add an edit box and select the Description variable as the Variable name
  8. Save the card and close the card Editor.

When you create a SOLIDWORKS drawing from a part with the custom property Description, the value in the part’s Description property is copied to the Description field of the drawings file card.

About Steven Darcey

Dynamic management professional with a diverse background in team and project management, sales and engineering. As a SOLIDWORKS Elite Applications Engineer, demonstrates a record of achievement in training both internal and external staff. Engages with senior leadership to contribute to high-level organizational decisions. Well-versed at working with cross-functional teams to achieve short- and long-term goals.

View all posts by Steven Darcey


Get the latest articles delivered daily to your inbox, unsubscribe at any time.