AnsweredAssumed Answered

ConfigurationManager Property returning error 91 on 2015 assemblies, but works fine with 2012 assemblies?

Question asked by David I on Oct 9, 2015
Latest reply on Oct 13, 2015 by David I

I'm trying to create a VBA script in SolidWorks 2015 to perform a macro on every component in an assembly. I've been following this example: which works great for the file it references (C:\Program Files\SolidWorks Corp\SOLIDWORKS\samples\tutorial\smartcomponents\stepped_shaft.sldasm) and other 2012 assemblies work as well, but as soon as I try to point it to a 2015 assembly I get error 91 on the line "Set swConf = swModel.GetActiveConfiguration".

Why would something like this be happening? Do I have to use a different property because of the new file type?