PurgeAll Method

Back to Methods Reference

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)

 
The AutoLisp/Visual Lisp/VBA Resource Website
Google
Search the WWW Search AfraLisp

Copyright 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website