ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
EHEthan Hoytema28/04/2025

I've been writing a script to traverse through our assemblies and run a bunch of different subroutines. I've been repeatedly encountering the same frustrating issue during the traverse that I can't seem to wrap my head around and wonder if it's a bug in SolidWorks. I've attached a much simplified version of the code that shows the heart of the issue.

The line of code that fails is "Set swModel = swComp.GetModelDoc