ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
אפאברהם פרגר23/04/2025

Hi. I'm trying to make a macro that will do the following actions for each part I mark in the assembly. 

The actions are: 

open the part, zoom to fit, save, open the drawing, save, save as PDF, close the drawing, close the part. 

When I run the macro I recorded, I get a message - Run-time error '91': and also a message Object variable or With block variable not set. 

I see in the code that there are several