Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 1, 2004
Messages
1
Location
US
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?
 
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

Back
Top