Design Automation and SolidWorks API and MacrosDesign Automation
Paul Gimbel provided in SlideShare website some few things about automation that each designer should know:1
Design automation is a time-saver that is used to reduce the design cycle time by providing consistency and repeatability, which are two things that are essential in capturing and sharing efficient design methods. Design automation results to a quicker development and a shorter time to market which in turn results to a reduced total design cycle time and an increase in profitability.4
Design Automation with SolidWorks Macros and API
The SolidWorks API (Application Programmer’s Interface) is a “group of functions that provides direct access to SolidWorks functionality.” Examples of such functionalities are creation of a line, extruding a boss, or outputting a file format. The SolidWorks API is the gateway to the automation of repetitive tasks such as batch plotting, custom property access, or assembly “configurators.” [5] A page in DesignPoint Solutions provides some examples of what SolidWorks API can do:5
Macro information is the “recording of the modeling commands sequence or the modeling history.”2 SolidWorks macros are un-compiled “programs written in Visual Basic for Applications, VBA for short,” although it can also be programmed using any software that supports COM (Component Object Model). VBA is the “most common COM-supporting development environment.” To save time, macros are used to simplify or automate tasks that are constantly being repeated.3 The words “macro” and “API” are sometimes used interchangeably. The difference lies in their nature. APIs are compiled programs, such as add-ins or some external executables, while macros are un-compiled programs.3
1Gimbel, Paul. “Design Automation: Simple Solid Works Solutions to Practical Programmatic Packages.” Razorleaf. 15 Sep 2009. 3 Jan 2011 <http://www.slideshare.net/Razorleaf/design-automation-simple-solid-works-solutions-to-practical-programmatic-packages>.
2Kim, Byungchul, and Soonhung Han. “Integration of History-Based Parametric Translators Using the Automation APIs.” International Journal of Product Lifecycle Management 2.1 (2007): 18-29. 4 Jan 2011 <http://macro-parametrics.org/wiki/Datas/publications_link/1.pdf>. 3CharlesCulp. “Macros and API.” SolidMentor. 29 Nov 2007. 3 Jan 2011 <http://solidmentor.com/modules/wiwimod/index.php?page=Macros>. 4Nikolic, Dragomir M. An Improved Method and Apparatus for Automated Design and Verification of Integrated Circuits. Kentucky: University of Kentucky, 2005. 3 Jan 2011 <http://archive.uky.edu/bitstream/10225/279/thesis_final.pdf>. 5“Training – SolidWorks API Fundamentals and Intro to VB Programming.” DesignPoint Solutions. 13 Aug 2010. 3 Jan 2011 <http://www.design-point.com/t/designpoint_training_api.html>.
|
||
|




