I make a recorded marco and try to ran it, but it pop up error message"error'91', no set up variable or with local variable". how can i do? But i checked the marco it created variable automatically. thanks!
Are you looking to do simulation with this macro? If not then remove all the lines related to simulation (cosmosworks) and run the macro. Alternatively, uncheck the simulation from tools > add-ins and the record the macro and see if that works or not
Thank you for your feedback Deepak, I am not looking to do simulation with this marco. But its wired, because this marco produced by Solidworks automatially. I dont push any simulation buttom for function during record the marco. So it should not appearing. This marco work when I remove cosmosworks, thanks!
Glad to hear that it worked. You must have simulation add-in checked an hence i got recorded automatically.
Retrieving data ...