How to Map Model Custom Properties to SOLIDWORKS PDM Drawing Data Cards Using $PRPSHEET

Problem

Using $PRPSHEET mapping in an annotation to display a model custom property in a drawing title block is a common practice. With SOLIDWORKS PDM (both Standard and Professional), we have the ability to actually move the property from the model to the custom properties of the drawing and into the drawing's data card. This article goes over how to accomplish this.

There are a couple of things to note in order to get this mapping to work:

  • The drawing must be saved in SOLIDWORKS, and the SOLIDWORKS PDM add-in must be enabled in SOLIDWORKS. 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.

Solution

Below are the steps to set up the property mapping. In this example, we will be mapping a Description property from the model to the drawing.

  1. Edit or create the variable Description.
  2. Click New Attribute.
  3. Under Selected attribute, specify the attributes for the Description custom property
    of the drawing:
  4. For Block name, select CustomProperty.
  5. For Attribute name, type Description.
  6. Type the file extensions to use for the variable mapping, separated by commas. The extension list must include slddrw and can also include other SOLIDWORKS extensions. For example: prt, sldasm, sldprt, slddrw, drw.

    Set attributes
  7. Click New Attribute and specify the attributes for the Description custom property of the model:
  8. For Block name, type $PRPSHEET. This must be all uppercase.
  9. For Attribute name, type Description or the name of the model's custom property from which you are copying the value.
  10. Type the file extension slddrw.

    Create new attribute
  11. Click OK.
  12. If you don't already have a Description field on the data card, open the SOLIDWORKS Drawing file card in the Card Editor.
  13. Add an edit box and select the Description variable as the Variable name.

    Select the description variable
  14. Save the card and close the Card Editor.

Now, when you create a drawing from a model with a Description custom property, it should be copied from the model to both the drawing's custom properties and the drawing's data card.

For additional support, existing customers can submit a ticket or new customers can contact Hawk Ridge Systems.

Was this article helpful?
1 out of 1 found this helpful

Articles in this section

Comments

0 comments

Article is closed for comments.