Hi,
I have search on this forum for the subject but no results.
Could i have a lisp to reset system variables?
I know that i could save SYSVDLG but with lisp will be more simple.
Thank you.
|
Hi,
I have search on this forum for the subject but no results.
Could i have a lisp to reset system variables?
I know that i could save SYSVDLG but with lisp will be more simple.
Thank you.
You'll have to make *.scr with your default sysvdlg settings... Here is my old version of *.scr, just to see what is in it... I have for this purpose put it in c:\ folder, so routine is:
M.R.Code:(defun c:resetsysvdlg ( / fn) (setq fn "c:/defaults.scr") (command "script" fn) (princ) )
thanks.
how can i export my *sfv file with default variable to scr?
manually?
I check the value of system variables, only reseting them as needed. If reset a message is posted to the command line. When working on my own drawings I shouldn't need to reset any which would count as a modification to the drawing. Example:For variables saved in the Registry that don't change when switching drawings I set them in Acad.lsp which only runs on startup. For variables saved in the drawing I use Acaddoc.lsp which runs every time a new drawing is opened. I've attached it for more examples.Code:(if (/= (getvar "auprec") 3)(progn(setvar "auprec" 3)(princ "\nSet angle precision to ddd°-mm'-ss\".")))
1+
I also add (load <username>.lsp) functionality with which each user can specify their own variable settings, customizations, etc.. This file is saved in the user's personal network space, which is also included in the Support File Search Paths.
Example:
Code:(if (findfile (strcat (setq userName (getvar 'loginname)) ".lsp")) (load userName))
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000