- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to load lisp routines using the %userprofile% variable but it is not working.
Here is the contents of my Acaddoc.lsp file.
(print "Printer setup started.")
(vl-load-com)
(vlax-for ps (vla-get-plotconfigurations
(vla-get-activedocument (vlax-get-acad-object))
)
(vla-delete ps)
)
(setq expert (getvar "expert"))
(setvar "expert" 2)
(command "._-PSETUPIN"
(strcat (getenv"userprofile") "/desktop/WT_AutoCAD/Library/Blocks/Templates/2018_Page_Setups.dwt"
"*"
)
(setvar "expert" expert)
(print "Printer setup completed.")
;; This loads custom WT Page Setups
(load (strcat (getenv"userprofile") "/desktop/WT_AutoCAD/Lisp/WT_Pagesetups.lsp")
;; This loads custom Steel Lisp Routine
(load (strcat (getenv"userprofile") "/desktop/WT_AutoCAD/Lisp/stl.lsp")
;; This loads custom Layer Director Lisp Routine
(load (strcat (getenv"userprofile") "/desktop/WT_AutoCAD/Lisp/LayerDirectorV1-2.lsp")
;; This loads custom Fast Lisp Routine
(load (strcat (getenv"userprofile") "/desktop/WT_AutoCAD/Lisp/Fast.lsp")
;; This loads custom Room Area Lisp Routine
(load (strcat (getenv"userprofile") "/desktop/WT_AutoCAD/Lisp/Areas2FieldV1-3.lsp")
Solved! Go to Solution.