Hide Table of Contents

Adding Custom Properties to Documents

By mapping variables to the custom property section of office files, you can have the information entered in the file data card show up within the document itself.

To add a custom property to a document:

  1. Create a variable named Project ID.
  2. Click New Attribute.
  3. Under Selected attribute:
    1. For Block name, select CustomProperty.
    2. For Attribute name, type Project ID.
    3. Type the file extensions to use the variable mapping, separated by commas.
  4. Click OK.
  5. Double-click Cards.
  6. In the Card Editor, open the Office Card file data card.
  7. Add an edit box and select the new Project ID variable as the Variable name.
  8. Save the card and close the Card Editor.
  9. Create a new Microsoft Word document in the vault, and enter information in the Project ID text box.
  10. Open the document, and click File > Properties.

    On the Custom tab, the Properties list shows the new Project ID property.

  11. To use the document property information in the document body or header, insert a field linked to the property value:
    1. Place the cursor where you want to show the value and select Insert > Field .
    2. Locate the DocProperty field and select the custom property called Project ID.

    The value automatically shows up as a field in the document.

    If you update the value in the file data card, you must refresh the page content in Word (Ctrl+A) to show the updated field information. Alternatively, you can create a refresh macro to automatically refresh the data. See Adding a Refresh Macro



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Adding Custom Properties to Documents
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SOLIDWORKS PDM 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.