API: Activate All Configurations And Save in SolidWorks to Update the Data Stream for Document Manager

Version 3

    The VBA macro looks at the folder where the macro is located and for each part or assembly there, opens the document, makes each configuration active one-by-one rebuilds, saves and closes the document. When the folder is parsed in full, the macro shuts down SolidWorks. This is to be used as a batch processing of parts and assemblies to update the data stream for all part and assembly configurations, the data stream that is read by the Document Manager. Inactive configurations could  possibly be not up-to-date otherwise. Checking ISwDMConfiguration10::IsDirty as being False through the Document Manager API will confirm that the update was successful.