Automating SOLIDWORKS 2021 Using Macros

A guide to creating VSTA macros using the Visual Basic.NET Language


Published February 11, 2021
Beginner - Intermediate
448 Pages
ISBN: 978-1-63057-377-5

Description

Key Features

  • Learn how to save time by automating repetitive work
  • Teaches you how to develop macros for SOLIDWORKS, the SOLIDWORKS Document Manager and SOLIDWORKS PDM Professional
  • Programming experience is not required
  • Covers many of the major API functions through practical use cases
  • Focuses on the Visual Studio Tools for Applications macro interface

In Detail

Engineers working with SOLIDWORKS are often faced with tedious, repetitive work that can consume a lot of time, but it doesn’t have to be this way. One of the most exciting aspects of SOLIDWORKS is its robust programming interface or API. The SOLIDWORKS API allows you to write code that can perform almost any series of actions for you. SOLIDWORKS was built from the ground up to automate, and in this book, you will learn how to take advantage of these powerful tools to speed up your work.

Automating SOLIDWORKS 2021 Using Macros is designed as a tutorial to help beginner to intermediate programmers develop macros for SOLIDWORKS. Experience with programming isn’t required. The book starts with a chapter on the fundamentals of Visual Basic.NET and the SOLIDWORKS API to make the learning process easier for beginners. The rest of the book introduces you to developing macros using the SOLIDWORKS API. The book concludes with a chapter dedicated to some of the author’s favorite source code for you to use as the basis for typical automation procedures.

The focus of this book is primarily on the Visual Studio Tools for Applications (VSTA) macro interface. It covers many of the major API functions through practical use cases. It will teach you the fundamentals of Visual Basic.NET as well as SOLIDWORKS, SOLIDWORKS PDM Professional, SOLIDWORKS Document Manager and Excel API functions.

Author Mike Spens has been professionally developing macros for SOLIDWORKS for more than a decade. He has helped numerous companies develop their own programs and streamline their workflows. If you want to learn how to develop your own macros for SOLIDWORKS, following best practices and using well written code, then this is the perfect book for you.

What you'll learn

  • Record macros
  • Control Custom Properties
  • Create parts and features
  • Build assemblies
  • Batch create drawings
  • Extract information from PDM
  • Create add-ins from macros
  • Create many other time saving utilities