Professional Documents
Culture Documents
Je Sui 121254
Je Sui 121254
...
mark
can use this if you like, my own code
...
mark
can use this if you like, my own code
...
;; purge all, recursive untill nothing can be
purged
(defun C:PURGEALL (/ cnt)
(setq cnt 0)(prompt "\r")(if (null
tcnt)(setq tcnt 0) )
(command "._UNDO" "._BEGIN" "._-PURGE" "_A" ""
"_Y")
(while (= (getvar "CMDACTIVE") 1)(command "_Y")(setq cnt (1+
cnt)) )
(prompt (strcat "\r " (itoa cnt) " item(s)
purged."))
(setq tcnt (+ tcnt cnt))(if (> cnt 0)(C:PURGEALL)
)
(if (/= tcnt 0)
(prompt (strcat "\nPurge
Completed, total of " (itoa tcnt) " item(s) purged.")) )
(setq tcnt
0)(command "._UNDO" "_END")(princ) )
mark
can use this if you like, my own code
...
mark
can use this if you like, my own code
...
mark