Welcome to Code Stack

Your one stop shop for SOLIDWORKS and PDM API, Desktop, Web software development code examples and tips & tricks.

Explore the overview of site sections below to find the resource you need


SOLIDWORKS is a popular Computer Aided Design (CAD) system. This section contains hundreds of articles and examples in VBA, C#, C++ languages for SOLIDWORKS API automation. Articles are structured and ordered in a way which makes it easier to learn and explore various concepts and methods.


SOLIDWORKS PDM (formerly EPDM) is a product data management system for CAD files (like SOLIDWORKS, AutoCAD, Inventor, Solid Edge, ProE). This section contains examples, tutorials and code snippets for automation of SOLIDWORKS PDM professional using API.

SOLIDWORKS Document Manager API

Document Manage is a lightweight library which allows reading and writing metadata directly to file streams without the need to open the files in the SOLIDWORKS. This section contains tutorials and explanation of different concepts of Document Manager API


This section contains large collection of ready-to-use macros to automate and enhance SOLIDWORKS. Browse macros by categories and add them directly to your SOLIDWORKS toolbar.

Visual Basic

VBA is the most popular language for macros in SOLIDWORKS, Excel, AutoCAD etc. This section contains the tutorials for beginners to enhance the programming skills in VBA.


Visit Code Stack Blog and subscribe to newsletter to receive the updates on the most interesting articles about SOLIDWORKS API and software development.

© 2019. All rights reserved.
Terms Of UsePrivacyCookies