1st Edition

Automating SOLIDWORKS 2021 Using Macros A guide to creating VSTA macros using the Visual Basic.NET Language

By Mike Spens Copyright 2021
    400 Pages
    by SDC Publications

    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 new 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.

    1. Fundamentals

    2. One Button PDF Publishing

    3. Model Dimensions Using Excel VBA

    4. Controlling Options

    5. Material Properties

    6. Custom Properties

    7. Model Creation

    8. Data Import and Export

    9. Drawing Automation

    10. Notes, Annotations and Tables

    11. Building Assemblies

    12. Working with File References

    13. Document Manager API

    14. PropertyManager Pages

    15. Using SOLIDWORKS Events in Macros

    16. PDM Professional API Basics

    17. PDM Professional Files and Variables

    18. PDM Professional Bills of Materials

    19. Favorite Code Examples

    Index

    Biography

    Mike Spens