VBA is an object-oriented programming environment embedded directly within AutoCAD. To begin your journey:

AutoCAD VBA is not dead. It is merely waiting for a master to wield it. Open the VBA IDE (type VBARUN in AutoCAD), press Alt+F11 , and write your first line. The hours of overtime waiting to be saved are infinite.

Dim blockRef As AcadBlockReference Dim atts As Variant Dim i As Integer