A serious error occurred on open macro file.

Can someone please open this macro in a version of Solidworks other than 2015 and remove the references?  Somehow or another mine got corrupted and I am not able to open it.

Thanks,

John

SolidworksApi macros
Answers 10
DG
DG 2016-01-12 Best Answer

Here you go.

SF
SF 2016-01-12

Thank you so much!

TV
TV 2016-01-13

Deepak - What kind of magic did you use?

I sometimes get the same error, and have to use an - OOOLD - backup. It would be nice to know your technique.

DG
DG 2016-01-13

I've different version of SOLIDWORKS on my machine. And I try to open/edit macro in each version starting from latest one. And then fix/remove the messed up/not required libraries.

KK
KK 2019-03-21

Hello everyone,

I have the same problem with this macro every time. What should I do with it?

I've made some macro before and i've never met with this problem. This macro always goes wrong randomly.

Thank you in advance

DG
DG 2019-03-22
<p>Krisztian Karasz wrote:</p><p></p><p>I have the same problem with this macro every time. What should I do with it?</p><p>I've made some macro before and i've never met with this problem. This macro always goes wrong randomly.</p><p style="min-height: 8pt; padding: 0px;"></p>

Usually the reference libraries gets messed up. Attached is fixed version.

KK
KK 2019-03-25

Thank you,

What do I have to watch to avoid this problem in the future? Is there any solution?

DG
DG 2019-03-27
<p>Krisztian Karasz wrote:</p><p></p><p>Thank you,</p><p>What do I have to watch to avoid this problem in the future? Is there any solution?</p>

I'm not sure what causes this but you should be able to open the models in higher version ad fix the issue. I think this was implemented with 2017 SP 2 or 4.

AP
AP 2020-09-18

The file that I am attaching is also corrupted, I am not able to open it for editing. Can you open it, re-save and send it to me. 

DG
DG 2020-09-18

Anish wrote:

The file that I am attaching is also corrupted, I am not able to open it for editing. Can you open it, re-save and send it to me. 

Try if attached is working for you or not.