This example describes how to map the variable Drawing Title to the SOLIDWORKS custom property DRAWING_TITLE.
You can manage SOLIDWORKS files and
read and write of properties in Enterprise PDM without the full
SOLIDWORKS application being installed or running.
Other possible mappings are:
Variable name |
SW property name |
Block name |
Attribute name |
Drawing Title |
DRAWING_TITLE |
CustomProperties |
DRAWING_TITLE |
Weight |
WEIGHT |
CustomProperties |
WEIGHT |
Revision |
REVISION |
CustomProperties |
REVISION |
Designed By |
DESIGNED BY |
CustomProperties |
DESIGNED BY |
Next Assembly |
NEXT_ASSY |
CustomProperties |
NEXT_ASSY |
Vendor |
VENDOR |
CustomProperties |
VENDOR |
To map to SOLIDWORKS custom properties:
- In SOLIDWORKS, view the Custom tab of the Summary Information dialog box to determine the properties to map.
- In the Administration tool, right-click Variables and select New Variable.
- In the Edit Variable dialog box, create a variable named Drawing Title.
- Click New Attribute.
-
Under Selected attribute:
-
For Block name, select CustomProperty.
- For Attribute name, type DRAWING_TITLE.
- Type the SOLIDWORKS file extensions that contain the property, separated by commas.
For example: slddrw.
- Click OK.
- In the Card Editor, open the SOLIDWORKS Drawing file data card.
- Add an edit box and select the new Drawing Title variable as the Variable name.
- Save the card and close the Card Editor.
When a user adds a SOLIDWORKS drawing to the Enterprise PDM vault, the SOLIDWORKS Drawing file data card shows the drawing title.