SOLIDWORKS PDM API example for handling the data card button click

Edit ArticleEdit Article

Data cards functionality can be extended using SOLIDWORKS PDM API by providing the custom logic in the button click handler. Similar to other events button click can be handled within the IEdmAddIn5::OnCmd overload.

When setting up data card user required to assign the special tag in the options which can be then read from the add-in as a comment which allows to identify the specific button.

This section contains code examples for using SOLIDWORKS PDM API and implementing custom behavior on the data card button click.


All articles and code at CodeStack are now open-source and hosted on GitHub. If you want to contribute by modifying existing articles and code snippets, submitting new ones, reporting errors and bugs etc. please follow this blog post for more information. We appreciate any contribution.

Product of Xarial Product of Xarial