I have been working on this macro to.
After I saved it and then closed out of Solidworks, when I tried to open the file to edit, it just crashes Solidworks immediately.
Can some on please tell me why this is, or if you can open it up, cause you copy and paste the code out of it here so that I can put it into a new macro?
Thanks-
SolidworksApi macros
SW2013 crashed on me but SW2014 worked.
Thank you so much.
Do you have idea why it would crash in 2013? Is there something in my code that is throwing 2013 off?
Not sure but I can try to check.
The original one is crashing. New one created from the copying paste is working fine
I am having this same issue with SolidWorks 2014 SP 2.0. There are 3 macros in the same folder that cause SW to crash if I attempt to open them for editing. These macros were working a week ago. Anyone know why this might be happening? Is there a way to recover the text from the file? This makes me think that I should save text file backups of my macros in the future...
Attach you macros here and some can try to fix them or see if can get text out of them.
Please use "advanced editor" in case you want to attach any files.Click on reply and then click "use advanced editor".
Deepak, it appears you have the right idea: you can use an older or newer version of SolidWorks to open the file. I opened the file with SW2013 SP0, saved the module as a .bas file, then imported it into a new project in SW 2014 SP2.0 (which is the version that was previously crashing). Seems to have worked for me.
Is anyone from Dassault Systemes aware of this issue? I have sent many many error reports. This seems like it is a bug in the software.