how can i solve this error
macro is attached.
You know you can debug a macro, right? That's what we all do in a situation like this. You set breakpoints, then step through the code step by step (Shift F8 works well) and look at the value of the variables at the place where something goes wrong until we find out what the reason is.
I was tempted to try to find the issue myself and I already download the sample. But you don't even give a hint where it goes wrong, so I'd be going in blind.
the assembly also works
solidworks is running in 2019
solidworks failed in 2020I don't know debugging
I don't know debugging
check the references for 2020 Lib
references are okay
Since I do not know how the macro works, it is hard to debug.
Retrieving data ...