Skip to content
  • There are no suggestions because the search field is empty.

How to Show Material and Other SOLIDWORKS Properties on a PDM Data Card

Link a SOLIDWORKS file property to a SOLIDWORKS PDM variable so its value shows on the data card automatically.

This article shows you how to display a SOLIDWORKS property, such as Material, on a SOLIDWORKS PDM data card. When you finish, the value set in SOLIDWORKS appears on the card each time a file is checked in, with no manual entry.

These steps work for any SOLIDWORKS property. The article uses Material as the example. To show a different property, such as Mass, Volume, or Description, use that property’s name wherever you see “Material.”

Before you start

  • You need PDM administrator permissions to edit variables and data cards in the SOLIDWORKS PDM Administration tool.
  • You need access to your company’s SOLIDWORKS template files, along with permission to change them.
  • Decide on the exact property name you’ll use, for example Material. The same name has to appear in both SOLIDWORKS and PDM, matching character for character.

Add the property to your SOLIDWORKS template

In order to ensure everything is consistently set up, it is best to enter the property into the part/assembly templates.

  1. In SOLIDWORKS, click File > Open.
  2. Set the file type to Part Templates (*.prtdot).
  3. Open the template your team uses for new parts.
  4. Click File > Properties.
  5. Select the Custom tab.
  6. In the first empty row, enter Material in the Property Name column.
  7. Set Type to Text.
  8. Click the dropdown in the Value / Text Expression column.
  9. Select Material. SOLIDWORKS fills in a linked value that starts with “SW-Material@”.
  10. Click OK.
  11. Click File > Save to save the template.

You don’t need to assign a material in the template. The template only needs the property, and each part gets its value once someone applies a material.

Map the property to a PDM variable

  1. Open the SOLIDWORKS PDM Administration tool.
  2. Log in to your vault.
  3. Expand Variables.
  4. Check whether a Material variable already exists.
    • If it exists, double-click it and confirm its attributes match the steps below.
    • If it doesn’t exist, right-click Variables and select New Variable.
  5. Enter Material as the Name.
  6. Set Type to Text.
  7. Click New attribute.
  8. Enter CustomProperty in Block name.
  9. Enter Material in Attribute name. This must match the SOLIDWORKS property name exactly, including spaces and capitalization. If the names don’t match, the variable won’t update.
  10. Enter sldprt in File extensions. Add sldasm or slddrw if you also want the value on assembly or drawing cards.
  11. Click OK.

Add the variable to the data card

  1. In the Administration tool, expand Cards > File Cards.
  2. Double-click your part card, for example the sldprt card, to open it in the Card Editor.
  3. Select the Edit box control from the toolbar.
  4. Click on the card where you want the field to appear.
  5. Select the new control, then choose Material from the Variable name list in the properties pane.
    1. If you'd like this to be exclusively driven from SOLIDWORKS Materials, select the Read-only checkbox. This keeps users from typing over the value that comes from SOLIDWORKS.
  6. Add a Label control next to the field and set its caption to Material.
  7. Click File > Save.
  8. Close the Card Editor.

Confirm it works

  1. In SOLIDWORKS, create a new part from the updated template.
  2. Save the part to a folder in the vault.
  3. In the FeatureManager design tree, right-click Material and select Edit Material.
  4. Select a material.
  5. Click Apply, then click Close.
  6. Save the part.
  7. Check in the part.
  8. In File Explorer, select the part and open the Data Card tab. The material you applied now shows on the card.

Update existing files

The template change only affects parts created after you update it. For an existing part to show the value, the part needs the same property:

  1. Check out the file.
  2. Add the property by following the template steps above.
  3. Check the file back in.

For further support, submit a ticket or access support contact information at https://www.swyftsol.com/support.