Visual Basic for Applications (VBA) is a programming environment that allows you to automate tasks using the Visual Basic programming language. This hands-on lab explores how to access and use the VBA integrated development environment (VBAIDE) and work with the AutoCAD object model. You learn to work with data, manipulate AutoCAD software objects, get input from a user, store values, work with basic conditionals, and other programming concepts. This is a beginner-level class for VBA programming and is not something you want to take if you already have experience with VBA programming.
- Create and load a VBA project file from the VBA integrated development environment
- Identify the classes, properties, and methods that are available in the AutoCAD object library
- Create and modify objects in the current drawing
- Collect input from the user via the command line or user form
Lee Ambrosius is a Principal Learning Experience Designer at Autodesk, Inc., for the AutoCAD and AutoCAD LT products on Windows and Mac. He works primarily on the customization, developer, and CAD administration documentation along with the user documentation. Lee has presented at Autodesk University for more than 10 years on a wide range of topics, from general AutoCAD customization to programming with the ObjectARX technology. He has authored a number of AutoCAD-related books, with his most recent project being AutoCAD Platform Customization: User Interface, AutoLISP, VBA, and Beyond. When Lee isn't writing, you can find him roaming various AutoCAD community forums, posting articles on his or the AutoCAD blog, or tweeting information regarding the AutoCAD product.