AnsweredAssumed Answered

Problem with: swClassFact = CreateObject("SwDocumentMgr.SwDMClassFactory") in SW2018 SP2

Question asked by Milan Wendl on Apr 16, 2018
Latest reply on Apr 17, 2018 by Milan Wendl

Hello My SolidWorks Colleagues,

Today I did finally switched to SW 2018 SP2 from 2017 SP4.1 and I am getting unexpected problem with the following line of code which I was using for the many years for number of VBA functions without problem.

 

Dim swClassFact As SwDocumentMgr.SwDMClassFactory

Set swClassFact = CreateObject("SwDocumentMgr.SwDMClassFactory")

 

This line is giving me the error 429 ActiveX component can't create object. SwDocumentMgr.dll is registered and referenced.

I hope somebody has the solution for me.

 

Thank you very much.

 

Milan.

Outcomes