Enumerations to save the world!


Enumerations are great little tools designed to make working with your API code easier. In SOLIDWORKS API, enumerations are often used to collect constants together in groups. As an example, this line of code is perfectly acceptable: swFeature.GetType = swSelBODYFEATURES However if later you want to change the type of feature you are looking for you have to look up all of the constants “GetType” returns. This can take some time. If you use enumerations, VBA’s IntelliSense provides you with […]

Read More