New for 2022! SOLIDWORKS PDM API Things You Can Do…They’re pretty cool.

Amen Jlili

The 2022 release of the SOLIDWORKS PDM Professional API didn’t bring major changes to the API itself with the exception of the PDM Web API docs. These changes however are very useful. Let’s go over them in detail:

1. You can rename BOM Views

You can rename BOM views with PDM Professional 22 SP0.0. The new method is called Rename and is part of the IEdmBomView4 interface. The API help has a straightforward example on how to use it.

2. You can destroy deleted items from a folder


You can now destroy files that you have deleted in a folder. Previously this was not possible with the IEdmFolder12 interface. The interface has been extended by the IEdmFolder13.

You can access the docs example here.

Deleted Items in a folder in PDM


3. Serial number counter

This is probably the most consequential update. You can now specify the next available counter for a particular serial number using this method.

This is particularly useful if you were used to storing your counter in a SQL database. Now, you have control over the next available value.

4. Access to more user settings

You can specify some killer user settings from a new interface IEdmUser11::SetSettingsVar.

The settings are:

EdmUSv_AutoDelete9 = Whether to automatically delete local read-only files that are not part of the vault; 1 = true, 0 = false; this setting corresponds to the “Automatically delete local read-only files that are not part of the file vault” checkbox on the Explorer tab on the Settings dialog that appears when you click “Settings” on the Properties dialog of a user in the Admin Tool
EdmUSv_AutoGetLatest11 = Whether to always work with the latest version of files; 1 = true, 0 = false; this setting corresponds to the “Always work with the latest version of files” checkbox on the Reference Dialog tab on the Settings dialog that appears when you click “Settings” on the Properties dialog of a user in the Admin Tool
EdmUSv_AutoGetLatestRefs43 = Whether to auto-select reference files to get latest when checking out; 1 = true, 0 = false; this setting corresponds to the “Auto select reference files to get latest when checking out” checkbox on the Reference Dialog tab on the Settings dialog that appears when you click “Settings” on the Properties dialog of a user in the Admin Tool

0 Comments

Leave a Reply

More great articles

A Quickstart Guide with the SOLIDWORKS PDM Web API

Headups: This post is not about the PDM Web2 viewer. This feature is not available with SOLIDWORKS PDM Standard. This…

Read Story

Learn how to write SOLIDWORKS PDM add-ins with PDMFramework

https://www.youtube.com/watch?v=n5gaSZPqsbg&t=1s In which Amen demos the PDMFramework library The PDMFramework library opens up a world of new possibilities for programmers…

Read Story

Top 5 reasons to start using PDM2Excel to start exporting PDM BOMs to Excel.

You use SOLIDWORKS PDM Professional to manage your product's cad data. You and your team have a solid vault implementation…

Read Story
Arrow-up