How to learn to generate macros in sw.

Hi, I m working on solidworks modelling and detailing since 2 yrs . Now i want to learn how to generate Macros in SW can any one suggest me.

Please help me in these .

Reply to
momic
Loading thread data ...

Macros are made by starting the macro recorder to record a set of actions that you wish to repeat. Macros can then be run to repeat the recorded program, or edited in the SW VBA editor.

You will not get far just recording macros. SW does not do a good job of capturing all commands. Also, there are many problems when trying to make a macro that requires selections.

If you are interested in macros, start by learning Visual Basic. SW uses VBA, which is also similar to VB6. Once you understand VBA and how it interacts with other programs, it will be easier to make sense of macros.

Reply to
That70sTick

The other good method of learning is to look at existing ones. You can go to the API help and find lots of examples, and also look for macros posted on the internet.

WT

Reply to
Wayne Tiffany

Do you know of any online tutorials that teach VB?

regards, John H

Reply to
John H

John and momic,

I've also been trying to learn VBA. Experience with VB6 does help, but itsn't 100% necessary. My main propblem has been that I've been underwelmed by the limited amount of publically available macro code for SolidWorks.

Here's some sites that have useful macros that already do much of what you may need (whether you know it yet or not):

formatting link
formatting link
formatting link
and in the forums on
formatting link
Study of already available code will help until you are ready to take some VB6 courses.

Reply to
fcsuper

Plenty of books available at Barnes & Noble.

Reply to
That70sTick

I would recommend highly 'Automating Solidworks 2006 using macros' this book friggin rocks it has saved me tons and tons of time by helping me with how to make macros.... I have very limited programing VBA and the book explained everything I needed

Reply to
Ben Eadie

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.