Coloradomrg
2013-08-01, 10:13 PM
Frustrated... this lisp works on the 2012 machines in the office. I've only installed 2014 on my machine, with hopes of upgrading the others soon.
The lisp will load, but tells me "Unknown command "CEILAYER". Press F1 for help." when I attempt to run it.
Other lisps load and run, including a clone of this one with special layers set up for a specific clients standards. We've been using the same lisp (with updates) in the office since long before I got here, and have never had any problems with it. The lisps are all loaded via my acaddoc.lsp, which is running successfully also.
I've even manually loaded CEILAYER.lsp, it loads successfully but I get the same error if I try to run it.
Secureload is set to 0, no trusted paths are set.
Any ideas?
Couldn't post the full code so I attached it, with just a snippet in the code window.
(DEFUN C:CEILAYER ()
(setq oldlayer (getvar "CLAYER"));get current layer
(setq oldosmode (getvar "osmode"))
(setq oldcmdecho (getvar "cmdecho"))
(setvar "osmode" 0)
(setvar "cmdecho" 0)
;;;ONE LINE LAYERS
(COMMAND "LAYER" "MAKE" "E-1LIN" "C" "134" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-DEMO" "C" "40" "" "LT" "DASHED" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-EXST" "C" "84" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-IDEN" "C" "14" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-DEMO-IDEN" "C" "14" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-EXST-IDEN" "C" "14" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-IDEN-NPLT" "C" "5" "" "P" "N" "" "")
;;;GENERAL LAYERS
(COMMAND "LAYER" "MAKE" "E-ALRM" "C" "134" "" "")
(COMMAND "LAYER" "MAKE" "E-ALRM-DEMO" "C" "121" "" "LT" "DASHED" "" "")
(COMMAND "LAYER" "MAKE" "E-ALRM-EXST" "C" "84" "" "")
(COMMAND "LAYER" "MAKE" "E-AREA-NPLT" "C" "150" "" "P" "N" "" "")
;;(COMMAND "LAYER" "MAKE" "E-AUXL" "C" "134" "" "")
;;(COMMAND "LAYER" "MAKE" "E-AUXL-DEMO" "C" "121" "" "LT" "DASHED" "" "")
;;(COMMAND "LAYER" "MAKE" "E-AUXL-EXST" "C" "84" "" "")
;;additional code here
;;; VIEW PORT
(COMMAND "LAYER" "MAKE" "VP" "C" "WHITE" "" "PLOT" "N" "" "")
;;reset existing layer
(setvar "CLAYER" oldlayer)
(setvar "osmode" oldosmode)
(setvar "cmdecho" oldcmdecho)
(PRINC)
)
The lisp will load, but tells me "Unknown command "CEILAYER". Press F1 for help." when I attempt to run it.
Other lisps load and run, including a clone of this one with special layers set up for a specific clients standards. We've been using the same lisp (with updates) in the office since long before I got here, and have never had any problems with it. The lisps are all loaded via my acaddoc.lsp, which is running successfully also.
I've even manually loaded CEILAYER.lsp, it loads successfully but I get the same error if I try to run it.
Secureload is set to 0, no trusted paths are set.
Any ideas?
Couldn't post the full code so I attached it, with just a snippet in the code window.
(DEFUN C:CEILAYER ()
(setq oldlayer (getvar "CLAYER"));get current layer
(setq oldosmode (getvar "osmode"))
(setq oldcmdecho (getvar "cmdecho"))
(setvar "osmode" 0)
(setvar "cmdecho" 0)
;;;ONE LINE LAYERS
(COMMAND "LAYER" "MAKE" "E-1LIN" "C" "134" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-DEMO" "C" "40" "" "LT" "DASHED" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-EXST" "C" "84" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-IDEN" "C" "14" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-DEMO-IDEN" "C" "14" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-EXST-IDEN" "C" "14" "" "")
(COMMAND "LAYER" "MAKE" "E-1LIN-IDEN-NPLT" "C" "5" "" "P" "N" "" "")
;;;GENERAL LAYERS
(COMMAND "LAYER" "MAKE" "E-ALRM" "C" "134" "" "")
(COMMAND "LAYER" "MAKE" "E-ALRM-DEMO" "C" "121" "" "LT" "DASHED" "" "")
(COMMAND "LAYER" "MAKE" "E-ALRM-EXST" "C" "84" "" "")
(COMMAND "LAYER" "MAKE" "E-AREA-NPLT" "C" "150" "" "P" "N" "" "")
;;(COMMAND "LAYER" "MAKE" "E-AUXL" "C" "134" "" "")
;;(COMMAND "LAYER" "MAKE" "E-AUXL-DEMO" "C" "121" "" "LT" "DASHED" "" "")
;;(COMMAND "LAYER" "MAKE" "E-AUXL-EXST" "C" "84" "" "")
;;additional code here
;;; VIEW PORT
(COMMAND "LAYER" "MAKE" "VP" "C" "WHITE" "" "PLOT" "N" "" "")
;;reset existing layer
(setvar "CLAYER" oldlayer)
(setvar "osmode" oldosmode)
(setvar "cmdecho" oldcmdecho)
(PRINC)
)