Home > Software engineering >  Solidworks2016 VBA run - time error
Solidworks2016 VBA run - time error

Time:09-23

The Run - time error: '- 2147417848 (80010108) Automation error. The object invoked has disconnected from it' s clients.

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL

CodePudding user response:

I was conducted in after running the VBA program, solidworks pack and go, swApp. CloseDoc this error

CodePudding user response:

Thank you, can you be specific? thanks

CodePudding user response:

Is running in the VBA macro error when the pack and go,

Errors as defined in swFileSaveError_e: 0
Warnings as defined in swFileSaveWarning_e: 0
Errors as defined in swFileSaveError_e: 0
Warnings as defined in swFileSaveWarning_e: 0
Errors as defined in swFileSaveError_e: 0
Warnings as defined in swFileSaveWarning_e: 0
Errors as defined in swFileSaveError_e: 0
Warnings as defined in swFileSaveWarning_e: 0

On the interface, is reported to the run time error of the error,
Still hope your advice

CodePudding user response:

The run time error can be inserted in the code Debug. Print or MsgBox auxiliary debugging,
  •  Tags:  
  • VBA
  • Related