AnsweredAssumed Answered

SwDMConfigurationMgr GetConfigurationByName Fails

Question asked by Andrew Johnson on Sep 8, 2016
Latest reply on Sep 8, 2016 by Artem Taturevych

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.