×
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

HELP NEEDED WITH SOLID WORKS MACROS USING VBA

HELP NEEDED WITH SOLID WORKS MACROS USING VBA

HELP NEEDED WITH SOLID WORKS MACROS USING VBA

(OP)
Hello Guys! I am a programmer starting with SW;
I've never programmed in VB, I came from JAVA world,
Where it's easy to fins docmentation about the APIs (and
all the Methods, Objects and Properties available...
see for instance:
http://java.sun.com/j2se/1.5.0/docs/api/
But I miss this in the SW World!
Is there any online API brower where I could see all the methods and Objects?
Even my VB Editor don't assist me with all the methods and properties availables.
Thanks in advance!

RE: HELP NEEDED WITH SOLID WORKS MACROS USING VBA

You can look under Help > API Help in SolidWorks

Deepak Gupta
SW2009 SP3.0
SW2007 SP5.0
MathCAD 14.0

RE: HELP NEEDED WITH SOLID WORKS MACROS USING VBA

If you are serious about writing for SW VBA, I would suggest taking the SW API course through your VAR.  SW VBA will be difficult unless you know the variables and how they are used.  You can usually stumble enough to maybe figure out what you need to get by without training and a lot of searching the net.

RE: HELP NEEDED WITH SOLID WORKS MACROS USING VBA

WOULD YOU LIKE A MACRO THAT TURNS OFF YOUR CAPS LOCK?

Sounds like your problem is more to do with knowledge of VBA.  Start simple.  Lots of help available with MS Office (especially Excel).  A few lessons there, and you will be ready for SW API.

SW API can be a bit tedious, because it uses methods for things that ought to be properties.  I usually end up writing lots of helper functions to ease that pain.

If you are new to VBA, learn about early binding.  That will help you take advantage of the VBA editors "intellisense", which will present an object's properties and methods.
http://esoxrepublic.com/blog/2008/07/24/early-binding-speeds-api-programming/
 

batHonesty may be the best policy, but insanity is a better defense.bat
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: HELP NEEDED WITH SOLID WORKS MACROS USING VBA

(OP)
thanks a lot!  

RE: HELP NEEDED WITH SOLID WORKS MACROS USING VBA

Thanks TheTick,
A star for you.

Standing
SolidWorks Pro 2009 x64, SP3.0, PDMWorks Workgroup, SolidWorks BOM,
HP xw8600, 64-bit Windows Vista Business, Service Pack 1
Intel Xeon CPU, 3.00 GHz, 16 GB RAM, Virtual memory 166682 MB, nVidia Quadro FX 4600

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