The ActiveX Developer's guide provides you with an overview of the main topics and workflows for using the AutoCAD ActiveX Object Library and the Microsoft Visual Basic for Applications Integrated Development Environment.
AutoCAD Visual Basic for Applications Interface
AutoCAD ActiveX and VBA Together
Embedded and Global VBA Projects
Organizing Your Projects with the VBA Manager
Editing Your Projects with the VBA IDE
Running a VBA Macro from a Toolbar or Menu
Automatically Loading a VBA Project
Automatically Running a VBA Macro
Automatically Opening the VBA IDE Whenever a Project Is Loaded
Accessing the Object Hierarchy
Opening, Saving, and Closing Drawings
Controlling the Application Window
Controlling the Drawing Windows
Setting and Returning System Variables
Accessing the AutoCAD Command Line
Assigning Layers, Colors, and Linetypes to Objects
Dimensioning in Model Space and Paper Space
Handling Application Level Events
MenuBar and MenuGroups Collections
Creating and Editing Pull-Down and Shortcut Menus
Interacting with Visual LISP Applications