Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

SW Addins written in VB? 2

Status
Not open for further replies.

TheTick

Mechanical
Mar 5, 2003
10,194
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.

[bat]Someday, someone may kill you with your own gun, but they should have to beat you to death with it because it is empty.[bat]
 
Replies continue below

Recommended for you

Hi TheTick,

yes, you can write Add-Ins with VB; AFAIK beginning with SolidWorks 2001Plus. To have a brief start go to and look for "Visual Basic COM DLL addin project with menu items + toolbars". Another useful resource is the free SWAddIn Template from
HTH,
Stefan

--
unofficial german SolidWorks helppage
Shareware, freeware, tools and macros
 
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
 
Newer version of SW suppport VB (activeX) dlls. but for earlier versions, check out "BitWright"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor