OS: Windows 10
SolidWorks Version: SolidWorks 2016 SP4
IDE / Language: Visual Studio 2015 / C#
I have some code simply reading configuration-specific custom properties using the Document Manager API. I first get the document's SwDMConfigurationMgr object, then get the configuration names. Now I want to loop through the names and get the Configuration-Specific custom properties for each configuration. This is where I run into trouble.
If I call GetConfigurationByName before my foreach loop, it works fine. If I call it within my foreach loop, it fails. Error message: "'object' does not contain a definition for 'GetConfigurationByName'". See screenshot.