×
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

Need Help with Macros

Need Help with Macros

Need Help with Macros

(OP)
I just started experimenting with macros.  I figured out how to record a macro fairly easily, but I was curious about the programming aspect.  I've begun experimenting with different recordings and looking at the resulting macro to discover various commands.  Where can a beginner get help with learning the language?  This is the first program I have used a macro with, so I will need an extremely basic tutorial on macros.

RE: Need Help with Macros

I knew nothing about API like you a couple years ago and was curious to learn about it.  I took the VB API Class offered by SolidWorks to learn at least something about it.  The rest I learned on my own using online info, the SolidWorks API help files, and any VB API code example I could find.  

Today, I'm not a wizard by any means but I know enough to manipulate the software by use of a macro.  Some of the macro's I've made save us tremendous time.

Good luck!  And keep with it.
Jeff

RE: Need Help with Macros

Buy a book.

The best place to start is to learn VBA (the language of macros).  It is also the language for MS Office macros.  A solid understanding of VB goes a long way toward sorting out advanced API calls (like SW).  I started out by learning straight VB (VB6) from books/CD's found at B&N.

Don't forget SW has its own API help available right there in the help menu.  It has its shortcomings, but it is about the best API documentation of any kind that I have come across.

I could be the world's greatest underachiever, if I could just learn to apply myself.
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: Need Help with Macros

Make sure you learn the right VB, don't get a book on VB.net or VB9 as SW2005 only uses VB6...

RE: Need Help with Macros

Small correction, alexit - SW only uses VBA.  Yes, VB6 and VBA are almost identical, but there are some syntactical differences (for example in the string manipulation area).  However, you can use VB, VB.NET, C#, etc. to automate SW or to develop SW add-ins.  However, if you want to use the more powerful languages, you have to buy the appropriate development tool.  I have even seen a project in Java.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...

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