|Removes unused named references such as
unused blocks or layers from the document.
VBA : object.PurgeAll
VL : (vla-PurgeAll thisdrawing)
- Object : Document
The object or objects this method applies to.
This method is the equivalent of entering PURGE on the command line,
selecting the All option and choosing Yes to the Purge Everything?
Deleted objects remain in the document until they are purged using this
;obtain a reference to the active document
(setq thisdrawing (vla-get-activedocument