Over 1.101.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
CAD tip # 6924:
Question
A
If you want to perform a PURGE in your drawing, without any interactive questions, you can use the commandline version of this command: -PURGE, or a simple LISP macro:
- Either add the following menu macro to your menu:
_-PURGE;_All;*;_N;
- Or add the the following LISP macro:
(vl-load-com)(vla-purgeall (vla-get-activedocument (vlax-get-acad-object)))
Or use LISP to define your own new command PURGEA:
(defun C:PURGEA () (vl-load-com) (vla-purgeall (vla-get-activedocument (vlax-get-acad-object))) (prin1) )
ACAD


8.9.2009
14584×
applies to: AutoCAD ·