View Full Version : Setting up Defaults via Script or LISP?
VERYCIVILDRAFTER
11-12-2006, 05:22 PM
I have to edit all of the "Printer Support File Paths" everytime LDD blows out a Profile or AutoCAD Map. Is there a way (script,drawing,lsp) to automaticaly repath those default search paths? Unfortunatly for the LDD users (because of menu pallets), saveing a Custom Profile isn't a viable option, we have to change the AutoCAD Defaults.
CarLB
12-12-2006, 10:12 PM
Hi Civil dude,
I found something that may help you. Those paths are saved in the registry. They can be accessed using the lisp functions "setenv" and "getenv".
So to reset your Printer configuration search path, use;
(setenv "PrinterConfigDir" "C:\\Folder1\\Folder2") where folder1&2 are the path/folder names.
other environment variables; note they are case-sensitive:
PrinterDescDir
PrinterStyleSheetsDir
PlotSpoolerDirectory
VERYCIVILDRAFTER
12-12-2006, 10:28 PM
Sweeet!
I'd found those enviroment variables in the profile arg file, but didn't have a clue how to edit them with a lsp.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.