×
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

SW Addins written in VB?
2

SW Addins written in VB?

SW Addins written in VB?

(OP)
I am in the process of writing a SW macro.  I would like to turn it into an Addin for use in my workplace.  Is it possible to write an Addin with VB?

The reason I ask is that there seems to be contradictory information.  The SW API help says SW does not support VB COM .dll's.  Yet, on the SW website there are examples for implementing VB based Addins.

Someday, someone may kill you with your own gun, but they should have to beat you to death with it because it is empty.

RE: SW Addins written in VB?

Hi TheTick,

yes, you can write Add-Ins with VB; AFAIK beginning with SolidWorks 2001Plus. To have a brief start go to http://www.solidworks.com/api/index.cfm?template=Downloads and look for "Visual Basic COM DLL addin project with menu items + toolbars". Another useful resource is the free SWAddIn Template from http://www.bitwright.com/

HTH,
Stefan

--
unofficial german SolidWorks helppage
http://solidworks.cad.de
Shareware, freeware, tools and macros
http://swtools.cad.de

RE: SW Addins written in VB?

A word to the wise. Maybe you know this already, but just in case.

As soon as you complied your program for the first time in VB, go to "Project", "Properties" (last menu) select "Component" and check "Project Compatibility". If you do not do this, every time you compile your project a new add-in will appear in your Solidworks add-in menu. By the time you are done, you will have dozens of add-ins by the same name in your add-in menu.

Good luck

When all else fails read the manual.

jevakil@mapdi.com

RE: SW Addins written in VB?

Newer version of SW suppport VB (activeX) dlls. but for earlier versions, check out "BitWright"

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