Synopses & Reviews
This book is for any programmer who wants to take full advantage of the VBA (Visual Basic for Applications) programming environment within AutoCAD 2006.Whether you want to automate routine tasks, create sophisticated applications - or design that are generated programmatically - this book will give you all of the information necessary to start making AutoCAD work for you.
AutoCAD is one of the best selling CAD software applications in the world, and includes Microsoft's VBA language, which allows you to control your programming environment. This book will teach you to run Autodesk design tasks in the embedded VBA environment.
This book is also for power users who want to take advantage of the advanced features of AutoCAD 2006 VBA and who need a fast reference to the full AutoCAD object model. Loaded with source code examples, this book gives experienced and beginning developers the necessary tools to accomplish their AutoCAD 2006 automation tasks.
This book provides a concise guide to the kind of customization programmers can achieve with AutoCAD 2006. It demonstrates how to use AutoCAD through short code examples wr- ten in Visual Basic for Applications (VBA). It also includes a complete quick reference that lists all the events, methods, and properties available with AutoCAD. Finally, it describes all the constants and system variables. What Is AutoCAD? So, what is AutoCAD? First released in 1982 under the name MicroCAD, AutoCAD has become a powerful tool for drafting and design purposes. AutoCAD 2006 incorporates many new features to enhance flexibility and drawing control. To reflect this extra functionality, many new ActiveX objects, properties, methods, and events have been included for improved programmability. What Is This Book About? This book is about AutoCAD 2006 and how to use AutoCAD VBA in your applications to h- dle all your drawing tasks more efficiently. It shows you how to programmatically control the creation and editing of individual drawing objects, manipulate linetypes and layers, control text and dimension styles, and do much more. As you encounter each of these topics, you ll learn all about the associated objects, including their properties, methods, and events. By interfacing with AutoCAD, you can exploit all of AutoCAD s functionality that would have taken you a long time to write yourself. This book will first help you learn how to use this functionality. Then it will become a handy reference later, when you have a question that you just can t answer."
This book will help you take full advantage of the VBA programming environment within AutoCAD 2006. Whether you want to automate routine tasks, or create sophisticated applications or design that can be generated programmatically, this book will empower you to make AutoCAD work for you.
This book is also suitable if you re a power user who wants to make use of the advanced features of AutoCAD 2006 VBA, and you need a fast reference for the full AutoCAD object model. You ll learn to run Autodesk design tasks in the embedded VBA environment. This book is loaded with source code examples, and gives you no matter your skill level the necessary tools to accomplish your AutoCAD 2006 automation tasks.
Table of Contents
The Integrated Development Environment - VBAIDE.- Introduction to Visual Basic Programming.- Application Elements.- AutoCAD Events.- User Preferences and the Preferences Object.- Controlling Layers and Linetypes.- User Interaction and the Utility Object.- Drawing Objects.- Creating 3D Objects.- Editing Objects.- Dimensions and Annotations.- SelectionSets and Groups.- Blocks, Attributes and External References.- Views and Viewports.- Layout and Plot Configurations.- Controlling Menus and Toolbars.- Drawing Security.- Using the Windows API.- Connecting to Microsoft Office Applications.- Sheet Sets.- Tables and TableStyles.- Summary Info.- Illustrative Examples of VBA Applications.- Appendix A.-AutoCAD Object Summary.- Appendix B.-AutoCAD Constants Reference.- Appendix C.-AutoCAD System Variables Reference.