SOLIDWORKS documents (parts, assemblies and drawings) provide large amount of API functions for automation.
This includes but not limited to:
- Feature Manager
There are also specific functionalities available only for the specific types of documents
- Parts APIs are available via IPartDoc interface
- Assemblies APIs are available via IAssemblyDoc interface
- Drawings APIs are available via IDrawingDoc interface
Specific interface can be cast to the generic interface and vice verse.
IModelDocExtension can be accessed via IModelDoc2::Extension property.