Mastering Autocad Vba -

On Error Resume Next ThisDrawing.SelectionSets("TempSet").Delete On Error GoTo 0 Set ss = ThisDrawing.SelectionSets.Add("TempSet")

To begin mastering VBA in AutoCAD, you must familiarize yourself with the , which runs simultaneously with AutoCAD. Mastering AutoCAD VBA

Wrap your Sub in a safety net:

, allowing you to control AutoCAD programmatically with relatively simple code. Getting Started with the VBA Enabler On Error Resume Next ThisDrawing