(defun c:diet (/) (prompt "\nMacro: Put your Drawings on a
DIET Toggle by
RLB!") (if (zerop (getvar
"PROXYGRAPHICS"))
(progn (setvar
"PROXYGRAPHICS" 1) (setvar "isavepercent"
0) (prompt "\n TURNED
OFF ")
)
(PROGN (setvar "PROXYGRAPHICS"
0) (setvar "isavepercent"
0) (prompt "\n TURNED ON
") )
) (princ))
The first part of the macro turns off the proxy or "zombie" graphics that just take up file space. This is accomplished through the "proxygraphics" variable. The second setting addressed in this macro refers to the Isavepercent variable. The function of the Isavepercent variable is to determine the amount of wasted space tolerated in a drawing file. It ensures that you are not retaining unnecessary "undo" data with every save. For more information look in your help files for "Isavepercent".
The command line will let you know if you are in "diet" mode or if it has been turned off everytime you run this toggle.