×
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

Custom Properties Tool no longer working in SP4

Custom Properties Tool no longer working in SP4

Custom Properties Tool no longer working in SP4

(OP)
I have been using the Solidworks Custom Properties tool from cadimensions.com with no problems until I loaded SP4.  Now when I try to run the macro the VB program opens and I get an error box with the following message:

Compile error:  Object library feature not supported.

The line at issue is:

Set swApp = CreateObject("SldWorks.Application")

with "swApp" highlighted.

I am not familiar with VB but we use this macro alot.

Thanks.

RE: Custom Properties Tool no longer working in SP4

Change that line to

set swApp = Application.SldWorks

I would recommend doing this for every macro you have that is intended to be run from inside SolidWorks.

RE: Custom Properties Tool no longer working in SP4

(OP)
I'm not sure why but that doesn't work either.

RE: Custom Properties Tool no longer working in SP4

I'm (finally) now on 2007 SP4 and don't have any trouble running it.  There are only a couple of other things I can think of.  The first is to check Tools->References in the VBA editor and make sure there aren't any references that say "MISSING".  The other is to right-click on any toolbar, choose "Customize", then right-click on your macro button and make sure that the box labeled "Method" shows the "Main" sub as the method to call.

RE: Custom Properties Tool no longer working in SP4

@rjason, I've the same pb.

I've all my macro which have the variable swApp initialise by Application.SldWorks and some are working end some not.

I think having found the reason : my macro works fine since I've UNchecked the library "Soliworks 2007 Commands Type Library".

You can find this reference in the VB editor in the menu "Tools/References"

But, I don't know why it worked before SP4. (This facts are very boring...). If someone knows the reason, it would be useful to know.

SW2007 SP3
Worksatation HP wx4300 2GB
NVidia Quadro FX 3450

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