Return to site

Add Document Properties In Excel

broken image


More 'Goodies'

Click on the Custom Tab to add or select a custom property. Next select Link to Content and choose Source Name we defined earlier. Click Add, to create/define the Custom Property and OK, to exit Properties. The Excel document can now be used as a template, so that information entered into the Data Card, will populate the appropriate cells. Step 1: Open the new or an existing Word document. Step 2: Click on the File tab at the top left corner of the document. Step 3: A list of file options will appear on the screen with the selected Info tab. Step 4: Click on the drop-down menu associated with the Properties. Select Advanced Properties from the Properties drop-down menu. If you add a custom document property to the DocumentProperties collection that's linked to a given value in an Office document, you must save the document to see the change to the DocumentProperty object. You can do so by using a Document Information Panel within a modern document library. Step 2: Open the document. When you open, make sure you open it with the native Word/Excel/PowerPoint application, not using Office Online. Step 3: Open the Properties Panel. Once in Word/Excel/PowerPoint, click on Info Tab, next click on Show All Properties. Step 1: Go to Excel Sheet, which a user wants to print. Open the File menu bar and click on print. Step 2: Now Print setting will open, then under the Setting section, select ‘Print Entire workbook'. Step 3: Now click on the number of copies needed by the user. Step 4: To print the workbook, click on the print button.


This Excel VBA macro adds additional functions to Excel palette allowing to read and write custom properties from SOLIDWORKS files.

This macro utilizes Document Manager which makes the process of reading and writing properties much faster (x10-x100+ times) than regular SOLIDWORKS API.

Furthermore SOLIDWORKS installation is not required to use this macro.

Preparation

  • If you do not have Document Manager License key, follow Activating Document Manager article for the steps required to retrieve the Document Manager license. This key is free for SOLIDWORKS customers under subscription.
  • Create new excel document and create new macro. Paste the macro code below
  • Modify the macro and enter the license key instead of the placeholder, retrieved in the first step. Note, depending on the size of the key you may see Compile error: Invalid outside procedure error error. Follow this article for a solution.
  • Add the SwDocumentMgr YEAR Type Library reference to the macro.

Usage

Macro will add 2 functions into the Excel functions scope which can be used as any other function in Excel

As standard functions user can pass the parameter as reference to other cells.

Or can use free text

Document

When multiple properties need to be written or read, use Excel ranges to maximize the performance of the operation

GETSWPRP

This function allows to extract the values of specified property from file or a given configuration. Error is thrown attempting to read the property which not exists.

Parameters

  • File Name - full path to SOLIDWORKS part, assembly or drawing
  • Property Names - property or range of properties to read values from
  • (Optional) Configuration Name - name of the configuration to read values from, if not specified properties are read from the general tab

SETSWPRP

Properties

How To Add Document Properties In Excel

Writes properties to the specified SOLIDWORKS file into the specified configuration. This function will either update existing property or create new if not exists. Sublime text editor free download for mac.

Parameters

How to add document properties in excel mac

When multiple properties need to be written or read, use Excel ranges to maximize the performance of the operation

GETSWPRP

This function allows to extract the values of specified property from file or a given configuration. Error is thrown attempting to read the property which not exists.

Parameters

  • File Name - full path to SOLIDWORKS part, assembly or drawing
  • Property Names - property or range of properties to read values from
  • (Optional) Configuration Name - name of the configuration to read values from, if not specified properties are read from the general tab

SETSWPRP

How To Add Document Properties In Excel

Writes properties to the specified SOLIDWORKS file into the specified configuration. This function will either update existing property or create new if not exists. Sublime text editor free download for mac.

Parameters

How Do You Add Document Properties In Excel 2016

  • File Name - full path to SOLIDWORKS part, assembly or drawing
  • Property Names - property or range of properties to write values to
  • Property Values - value or range of values of properties
  • (Optional) Configuration Name - name of the configuration to write values to, if not specified properties are written to the general tab

Troubleshooting

In case of an error the corresponding cell will indicate this:

Pirates of the caribbean online download for mac. To find more about the error. Open the macro and inspect immediate window output

Teamviewer 13 free download for mac. Descriptions of open error code can be found here

It is strongly recommended to test this macro on sample data before using on production file. And also it is strongly recommended to backup the data before using this macro.

Notes

This macro will extract formulas (instead of resolved values) for properties with equations such as mass or material.

To define the formula use ' to protect the ' symbol. For example





broken image