SOLIDWORKS Document Manager API provides a comprehensive set of functions to manage (add, remove, modify and read) custom properties in SOLIDWORKS files.
Custom properties can be accessed for the
- File (general) via ISwDMDocument interface
- Configuration via ISwDMConfiguration interface
- Cut-list items via ISwDMCutListItem2 interface
It is possible to read properties one-by-one or extract the values in a batch.
Library allows to extract resolved values and text expressions. It is however not possible to resolve the value and only cached values can be extracted. For example if configuration specific property contains an expression which evaluates the mass of the model and the configuration was never activated, Document Manager won’t be able to extract the calculated value until the model is opened and saved and configuration is activated and rebuilt.
Document manager additionally enables to manage invisible properties which are not present in the Custom Properties dialog and can only be read and written via Document Manager API.
Explore the articles in this section for more information and code examples.