Book Errata

Automating SOLIDWORKS 2017 Using Macros

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

Out of Print
Published February 3, 2017
440 Pages
ISBN: 978-1-63057-084-2

Errata

Chapter 3 Page 29

In Step #1 says...

You might want to turn on the SOLIDWORKS system option “Show dimension names” from the general category for easy access to specific dimensions.

It should say...

For better dimension name visibility, select View, Hide / Show, Dimension Names.
Chapter 7 Page 127

The line of code...

Dim featureDef As Object

Should be...

Dim featureDef As ExtrudeFeatureData2
Chapter 16 Page 321

The code shown below was published as...

Dim appDir As String = _ 
    System.Reflection.Assembly.GetExecutingAssembly().Location

Should be...

Dim appDir As String = _ 
    IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)