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