API: File Save Functions (Enterprise PDM, SolidWorks )

Document created by Robin Richter on Apr 27, 2010Last modified by Robin Richter on Nov 2, 2012
Version 4Show Document
  • View in full screen mode

When saving files from SolidWorks using the API, you should avoid adding the file directly to an Enterprise PDM vault. Instead, you should save the file to a temporary location, and then add the file to the vault using the Enterprise PDM API. The attached project includes these useful functions for dealing with this scenario:

 

  • Check if the Enterprise PDM client is installed (using COM or WMI)
  • Determine if a given path is in a vault
  • Add file to the vault

 

The attached project contains a sample application and a static class that contains the PDM related functions. The class is exposed to COM, so it can be used from unmangaged applications.

 

The project was created using C# in Visual Studio 2005.

 

Note:
- Subscription Services required for full access.

- Looking for more API Examples?

 

 

Copyright © 2010 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp

Attachments

Outcomes