![]() ![]() (mapcar 'setvar dimvars oldvals) restore settings (mapcar 'setvar dimvars '(2 50)) and as many others as desired, corresponding to items in 'dimvars' list ![]() ![]() Oldvals (mapcar 'getvar dimvars) current settings And because it imposes the value for each property on the selected Dimension(s), without changing the System Variable settings, it doesn't require saving the settings first and resetting them afterwards, which is the main reason for the great difference in the amount of code involved.īut if you wanted for some reason to change those settings before drawing the Dimension(s) and restore them afterwards, it can be done more concisely without the (foreach) and (repeat) and (nth) and index-counter elements:ĭimvars '(dimlunit dimlfac) and as many others as desired The code in Post 2 also writes each variable only once. I don't see any advantage to an approach like that. The variables to temporarily set would only have to be written once using this structure. (foreach x (setq a (list "DIMLUNIT" "DIMLFAC")) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |