#2
ENSIGN,

There are no Undo methods in VBA.

I start a count and loop through the count deleting the last entity

Below is an example of what I use:

' Delete the New Entities
For L = 1 To (FinalCount - StartCount)
LastEnt.Delete
Next L

Public Function LastEnt() As Entity
' This provides the Last entity in the drawing ModelSpace
Set LastEnt = IntelliCAD.ActiveDocument.ModelSpace.Item(IntelliCAD.ActiveDocument.ModelSpace.Count)
End Function