Problem with macro (2014) running on 2015 : boolstatus = swModel.ForceRebuild3(True)

Hello,

I'm triing to run a macro that works on Solidworks 2014 but not on 2015.

Crashes on th line:        boolstatus = swModel.ForceRebuild3(True)

Thanks for your help.

SolidworksApi/macros
Answers 3
DG
DG 2021-03-26 Best Answer

Share complete macro codes to debug the issue. Also make sure you set the reference correctly in the macro for desired SW version.

WM
WM 2021-03-26

Most likely the issue is that it is not connecting to the swModel object so that it cannot rebuild it.

JT
JT 2021-03-26

what does the error message say?