×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SW2004 sp4.2 macro error

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?

RE: SW2004 sp4.2 macro error

change
Set swApp = Application.SldWorks

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

"Customer satisfaction, while theoretically possible, is neither guaranteed nor statistically likely.--E.L. Kersten
http://www.EsoxRepublic.com

RE: SW2004 sp4.2 macro error

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

RE: SW2004 sp4.2 macro error

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources