SW2004 sp4.2 macro error
SW2004 sp4.2 macro error
(OP)
I recently went to sp 4.2 in sw 2004. Now one of my macros won't run. The line that crashes it is
Set swApp = Application.SldWorks
The error it gives is
Compile error:
Object library feature not supported.
The visual basic debugger which comes up is version 6.3
Any suggestions?
Set swApp = Application.SldWorks
The error it gives is
Compile error:
Object library feature not supported.
The visual basic debugger which comes up is version 6.3
Any suggestions?






RE: SW2004 sp4.2 macro error
Set swApp = Application.SldWorks
to
set swApp=CreateObject("Sldworks.Application")
http://www.EsoxRepublic.com
RE: SW2004 sp4.2 macro error
p.s. please keep your replies on this forum so others can see progress
RE: SW2004 sp4.2 macro error
In the SolidWorks VBA macro editor, make sure the reference to SW library is still there. Look under "Tools --> References" and make sure the "SldWorks 2004 Type Library" is checked. It's a long list, look carefully.