PDA

View Full Version : 2014: old basic lisp not working



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)
)

fixo
2013-08-02, 10:36 AM
I set SECURELOAD to 1, then it's run succesfully on my machine
(Win 7, A2014 (eng) [x 86] )
just a quick shot, sorry

Coloradomrg
2013-08-02, 02:03 PM
Figured it out...

Part of the overall lisp includes a custom linetype that I forgot to add to the new acad.lin. Once I added it, everything works again.

Coloradomrg
2013-08-02, 02:40 PM
Even better I've added a custom .lin file that includes our linetypes, so in the future this won't be an issue. I never migrate my installations... choosing clean installs instead, so it seems like every few versions something pops up that makes me re-think part of my customization process.

fixo
2013-08-02, 03:45 PM
Glad you solved it out
Cheers :)