Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SW2004 sp4.2 macro error

Status
Not open for further replies.

TNhillbilly

Mechanical
Dec 1, 2004
1
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?
 
Replies continue below

Recommended for you

change
Set swApp = Application.SldWorks

to
set swApp=CreateObject("Sldworks.Application")

[bat]"Customer satisfaction, while theoretically possible, is neither guaranteed nor statistically likely.[bat]--E.L. Kersten
 
Perhaps your VBA installation is corrupt. Check the FAQ's in this forum about that subject.

p.s. please keep your replies on this forum so others can see progress
 
One more thing to try...

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor