Working with assembly documents using SOLIDWORKS Document Manager API

Edit ArticleEdit Article

Unlike regular SOLIDWORKS API, Document Manager doesn't provide a specific interface for the assembly document rather it should be managed by ISwDMDocument and ISwDMConfiguration2 interfaces.

Some of the methods in those interfaces are exclusive to assembly document only, e.g ISwDMConfiguration2::GetComponents or ISwDMDocument8::GetComponentCount.

It is recommended to use ISwDMDocument::FullName SOLIDWORKS Document Manager API to get the full path and match its extension to .sldasm to validate that document is an assembly.

This section contains examples and macros related to working with assembly documents using Document Manager.

Notifications

Join session by SOLIDWORKS and PDM API expert Artem Taturevych at 3DEXPERIENCE World 2026 on Wednesday, Feb 4 at 08:30 AM CST to explore 10 essential macros for automating drawings, assemblies, custom properties, and more


Product of Xarial Product of Xarial