14 Replies Latest reply on Oct 13, 2015 1:13 PM by David I

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

    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: http://help.solidworks.com/2015/English/api/sldworksapi/Traverse_Assembly_at_Component_Level_Example_VB.htm 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?