Code Examples

The example code in the ActiveX and VBA Reference demonstrates how to combine Visual Basic for Applications with the power of the AutoCAD ActiveX interface to create customized applications.

The code can be copied from the Help files and pasted directly into the AutoCAD VBA environment. To execute the code, the currently active AutoCAD drawing must be a blank drawing open in model space.