CompuServe Thread

#Save/Restore DimVars

2 messages in this thread
#22214From: DALE A. HACKERApr 25, 1988 5:14 PM
Does anyone know of a slick way to store all (or part) of the Drawing Variables(Dim Vars in particular) within a LISP propram? During the course executing my LISP program, I am changing Drawing Variable, in particular, Dimension Variables, such as dimtah,dimtxt,dimtsz, etc. However, after completing the program I would like to restore the Variables to their original values. I could have a separate line within the program to call the Variable, save it to a LISP variable, and then restore it later. Needless to say, this would take up a lot of precious LISP memory space. I there is a better way of saving Variables either Globally or partially, it would certainly be a blessing. –Dale
#22239From: Training [ADESK]Apr 25, 1988 8:07 PM
Dale — Look at the MODES function in the R-SURF.LSP file included with your AutoCAD release disks. It was designed to do exactly what you want. — Brad ..