Routine to set search paths, file names, and file locations
Enough to be dangerous... looking for help with this lisp routine that will set these specific search paths, file names, and file locations:
Thanks to rkmcswain for getting me started!
Code:
(setq paths
(apply 'strcat
(list
"\\\\Carla\\Autodesk\\Support;"
"\\\\Carla\\Autodesk\\Fonts;"
(getvar "ROAMABLEROOTPREFIX")
"C:\\Program Files\\Autodesk Land Desktop 2007\\support;"
(getvar "LOCALROOTPREFIX")
"C:\\Program Files\\Autodesk Land Desktop 2007\\help;"
"C:\\Program Files\\Autodesk Land Desktop 2007\\express;"
"\\\\Carla\\autodesk\\Support\\Color;"
"\\\\Carla\\Autodesk\\LDD 2007;"
"\\\\Carla\\Autodesk\\LDD 2007\\Land;"
"C:\\Program Files\\Common Files\\Autodesk Shared\\AxUi;"
"C:\\Program Files\\Autodesk Land Desktop 2007\\civil;"
"C:\\Program Files\\Autodesk Land Desktop 2007\\FDO\\bin;"
"C:\\Program Files\\Autodesk Civil 3D 2007\\FDO\\bin;"
"C:\\Program Files\\Raster Design 2007;"
"C:\\Program Files\\Autodesk Land Desktop 2007\\Support\\Lisp\\Startup;"
"\\\\Carla\\autodesk\ARD 2007\Help;"
)
)
)
(vla-put-SupportPath
; Device Driver File Search Path
(vla-put-driverspath "\\Carla\\autodesk\\Drv")
;
; Customization Files
;
; Text Editor, Dictionary, and Font File Names
(setvar "dctcust" "\\carla\\autodesk\\support\\sample.cus")
(setvar "fontalt" "simplex.shx")
(setvar "fontmap" "\\carla\\autodesk\\support\\acad.fmp")
;
; Print Support File Path
(vla-put-PrinterConfigPath "\\Carla\\Autodesk\\Plotters\\PMP Files")
(vla-put-PrinterDescPath "\\Carla\\Autodesk\\Plotters")
(vla-put-PrinterStyleSheetPath "\\Carla\\Autodesk\\Plot Styles")
;
; Color Book Locations
(vla-put-ColorBookPath "\\Carla\\autodesk\\Support\\Color")
;
; Template Settings
(vla-put-TemplateDwgPath "\\Carla\\Autodesk\\Templates")
; Missing Sheet Set Template File (vla-put-???????????????????? "xxx")
(vla-put-QNewTemplateFile "\\Carla\\Autodesk\\Templates")
(vla-put-PageSetupOverridesTemplateFile "\\Carla\\Autodesk\\Templates\\Sheet Sets\\PageOverride.dwt")
;
; Tool Palettes File Locations
(getvar "TOOLPALETTEPATH")
paths
)
RE: Routine to set search paths, file names, and file locations
I appreciate the help! I just tested the lisp and received the following error:
(LOAD "//carla/autodesk/Support/acad2007test4a.lsp") ; error: ActiveX
Server returned an error: Parameter not optional
RE: Routine to set search paths, file names, and file locations
That didn't work either, same problem:
Command: (LOAD "//Carla/autodesk/Support/acad2007test4a.lsp") ; error: ActiveX
Server returned an error: Parameter not optional
RE: Routine to set search paths, file names, and file locations
Quote:
Originally Posted by kirkm.89518
That didn't work either, same problem:
Command: (LOAD "//Carla/autodesk/Support/acad2007test4a.lsp") ; error: ActiveX
Server returned an error: Parameter not optional
Oops, typo: :Oops:
Code:
(vla-put-SupportPath pref_files path)
should be:
Code:
(vla-put-SupportPath pref_files paths)
There may be more; we'll just have to work through it...
And yes, add (vl-load-com) as the first line as Opie suggested.
RE: Routine to set search paths, file names, and file locations
Quote:
Originally Posted by kirkm.89518
. . ."carlaautodesksupportacad.fmp". . .
...hmmm something strange is going on here.
Are AutoCAD not treating \\ in the same way anymore ?
try single / or add drivename X: C: or . . .
: ) Happy Computing !
kennet