SOLIDWORKS API: How It Works
SOLIDWORKS helps users to design their products as per their industry standards and requirement, but what happens if the design begins to become a repetitive and lengthy task.
Here’s the crack…
SOLIDWORKS provides an automation tool called SOLIDWORKS Macro/API (Application Programming Interface), that allows the user to automate the designing tasks and eliminate the conventional and repetitive process of designing for different sizes and conditions.
How does it work
Let’s take a look at it.
SOLIDWORKS API automation can be accessed in two ways:
Method 1: (In-application integration for automation)
A. Recording a new & Running / editing existing macros - SOLIDWORKS macros/API can be accessed through a customizable in-application button set dedicated for operating (recording / editing /creating) macros. Simply select the existing .SWP file to start using the macro automation.
Dedicated Macro button for a Task - A fully automated button can also be integrated inside of the SOLIDWORKS application to achieve the required task. Refer the Fig 2 and Fig 3 as shown below (A customised user form to create a structural member)
B. Microsoft applications - such as MS Excel, MS Access & MS Visio can also be used to integrate with SOLIDWORKS for automation purpose. Refer Fig. as shown below for explanation.
C. Add-ins – Customised SOLIDWORKS Add-ins can be created through SOLIDWORKS API and added inside of the SOLIDWORKS interface.
Method 2: (Standalone application for Design automation)
Stand-alone application - A fully independent application can be developed using SOLIDWORKS API tools for creating custom designing documents. These applications are stand-alone and doesn’t require to start SOLIDWORKS working environment (Until getting the final results i.e. drawings / part models)
Fig. above shows one such stand-alone application used for designing vessels.
All this automation requires working with some of the programming interfaces as listed below:
For more help, visit the link mentioned as below.
Images source: solidworks.com