
Tired of repeating the same tasks in SOLIDWORKS? This course takes you from recording your first macro to writing your own automation with VBA and the SOLIDWORKS API, covering parts, assemblies, and drawings along the way. No prior VBA experience is needed: the VBA Basics section covers the language from the ground up before you move on to the API.
General Introduction: an introduction to the SOLIDWORKS API and VBA, the macro recorder, writing your first macro, and navigating the Visual Basic Editor.
VBA Basics: variables and data types, control structures, subroutines and functions, modules and classes, data structures, naming conventions and comments, debugging, advanced error handling, Option Explicit, events, user forms, and how to navigate the SOLIDWORKS API documentation.
SOLIDWORKS API: the SldWorks interface, document management, system options and document settings, custom properties, traversing the feature tree, selection with ISelectionMgr and SelectById2, and configuration management.
Part Modeling: creating documents from templates, working with bodies, the IEntity interface, traversing edges, vertices and faces, reference geometry, sketching and extruding, and suppressing features.
Assembly Modeling: traversing the component tree, referenced configurations, inserting components, advanced selection techniques for mates, and mating components with IMate.
Drawing Modeling: creating drawings with predefined views, adding annotations, and creating a bill of materials.
Who this course is for: SOLIDWORKS users, CAD administrators, and engineers who want to automate repetitive work and build their own tools with VBA.