Your tutorials are GREAT, I can’t stop watching them! I‘ve learned so much in such little time and it’s just the beginning. I can now look at code at figure out what it means, before it was Chinese to me. Thanks for investing the time and providing a great resource!

Bill H.

Absolutely incredible job. I am very new to programming, and with as little as I know I could easily follow your logic. Even more importantly, I learned a lot. Thank you very much.

Evan D.

Automating SolidWorks® With VBA

Description: Why is this course the best API training resource in existence? The answer is here, as well as my recommendation on how you can use it most effectively.

Learn More

Unit 1 : VBA Programming Essentials

Description: Why is this course the best API training resource in existence? The answer is here, as well as my recommendation on how you can use it most effectively.

Duration: 23m 17s
Description: Variables contain the numeric, string, or object information you need to work with while coding. In this lesson you will learn how to declare variables, assign values to those variables, and then use those variables.

Duration: 09m 52s
Description: Arrays are a convenient way to store multiple values in a single variable, making your job as a programmer much easier.

Duration: 13m 57s
Description: In this lesson we teach you how to use If – Then – Else statements to control which code is run under which conditions.

Duration: 13m 29s
Description: What if you need to run the same piece of code several times in a row? Here we introduce to various types of code loops.

Duration: 29m 49s
Description: VBA comes with many built-in functions for receiving user input, handling mathematical calculations, string manipulation, dates and time, and more. Learn about them here.

Duration: 34m 04s
Description: In order to easily re-use and debug your code, you need to use modular programming techniques. Watch this lesson and learn to avoid some of the pitfalls experienced by amateur programmers.

Duration: 16m 07s
Description: This lesson shows you how to make your macros user-friendly by incorporating GUIs (Graphical User Interfaces) into your macros.

Duration: 30m 40s
Description: No one writes perfect code. This lesson shows you the many tools built into the VB editor for identifying and eliminating bugs.

Duration: 16m 42s
Description: Need your macro to interact with every file in a specific directory? Create a directory? Copy, move, or delete a file? It’s all here.

Unit 2 : Introduction to the SolidWorks API

Duration: 15m 57s
Description: This lesson covers the macro recorder built into SolidWorks, including its uses and limitations.

Duration: 23m 24s
Description: In this lesson we show the basics of working with the SolidWorks API to create a simple macro. The very important topic of how to use the API Help properly is introduced.

Duration: 32m 20s
Description: In this critical lesson, we explain the organization of the SolidWorks API Object Model and how object interfaces are navigated using “accessors”. You will begin to learn about the different document interfaces.

Unit 3 : General document functionality

Duration: 28m 25s
Description: This lesson covers opening, saving, and exporting native and non-native documents with the SolidWorks API. Many tips for using API calls are covered.

Duration: 13m 19s
Description: In this lesson you will learn how to traverse, create, modify, and delete configurations.

Duration: 12m 15s
Description: In this lesson we will examine the powerful and efficient ways to use the API to add, delete, and modify custom properties for the document and each configuration.

Duration: 24m 17s
Description: This important lesson explores the means of getting pre-selected objects and selecting objects using the SolidWorks API.

Duration: 15m 39s
Description: This lesson demonstrates how to control system and document settings with the SolidWorks API.

Unit 4 : Working with parts

Duration: 37m 51s
Description: In this lesson you will learn how to create and dimension sketch entities, as well as traverse existing sketch segments.

Duration: 24m 31s – 10m 44s – 14m 32s
Description: Since features are such an important part of SolidWorks, this lesson is broken up into three parts: feature creation, feature modification, and FeatureManager tree traversal. In less than an hour you’ll learn crucial techniques that might take you a dozen hours to fully understand on your own. The last lesson, on feature traversal, is particularly critical since the techniques shown apply to assembly and drawing traversal as well.

Duration: 19m 56s
Description: This lesson covers the skills foundational to traversal. If you want to take your understanding of API to the next level, you MUST understand the SolidWorks BREP (boundary representation) model, most notably the difference between geometry and topology objects and their key uses.

Unit 5 : Working with assemblies

Duration: 45m 09s
Description: In this lesson you will learn to fully automate the creation of an assembly, with particular emphasis given to mating techniques.

Duration: 30m 54s
Description: In this lesson you will learn more about the IComponent interface, inserting and editing parts, and bounding boxes. For the example, a new solid is inserted to engulf the bounding box of a selected component(s). This is based on a macro used in robotic simulations to simplify the boundaries of surrounding equipment.

Duration: 25m 36s
Description: In this lesson you will learn in great depth about the complex topic of component transforms. Many examples covering the fundamentals of component translation and rotation are presented.

Unit 6 : Working with drawings

Duration: 24m 30s – 30m 56s
Description: This lesson covers, in two parts, the five main interfaces related to drawing automation: IDrawingDoc, ISheet, IView, IAnnotation, and ITableAnnotation. The creation of a fairly complex drawing is automated using these five interfaces.

Duration: 32m 20s
Description: This lesson expands on the previous lesson by demonstrating advanced functionality, such as identifying view orientation using transforms, adding section views, adding specific dimensions, and using poly-lines.

Duration: 29m 03s
Description: In this lesson you will learn how to write a batch modification macro, using notes and view configurations as an example, as well as print results to a text file.

Unit 7 : Advanced topics

Duration: 13m 34s
Description: In this lesson you will learn how to import data points from an Excel file in order to create a 3D point cloud in a 3D part sketch.

Duration: 20m 13s
Description: This lesson covers the event handling capabilities of the SolidWorks API, beginning with the fundamentals and moving to examples showcasing their best uses.

Duration: 11m 56s
Description: Temporary bodies are used to create bodies without standard features or to increase the performance of tasks involving bodies.

Duration: 33m 41s
Description: Ever wanted to create macros with SolidWorks-native user interfaces? This lesson will show you how to do just that via PropertyManager pages (PMP). At the end of the lesson we also show you how to create previews using temporary bodies.

Duration: 43m 47s
Description: This is the only tutorial available that you will walk you through the creation of a macro feature for creating or modifying a body. You will also learn how to control the input body and extrude length with a PropertyManager page. A temporary body preview will be added as well. Finally, you will see the final iteration of the Spike Creator macro that we have been working on in the previous two lessons.

SolidWorks World

Duration: 1h 01m 26s
Description: This presentation was given at SolidWorks World 2012. The advertised description: “Forget abstract talks about object-oriented programming. This hands-on class will get the total beginner on track to unleash the SolidWorks API for greater productivity, using quick and dirty tactics involving the macro recorder, API help, and free cheat sheets.”

Duration: 1h 12m 30s
Description: This presentation was given at SolidWorks World 2012 in a breakout session called “Goldmember: 99 Must-Know Methods and Properties of the SolidWorks API”. The advertised description: “The SolidWorks API is big. Really big. Like any language, however, you only need to know 5% of the words to accomplish 95% of what you need. This session will look into what’s important and what’s not, covering feature creation, object traversal, selection techniques, and much more.”