caddcop 发表于 2022-7-6 10:45:47

Function - Run on Load

I have seen some routines that when loaded echo a message to the user and others that do not. Can someone explain to me how to add code to a lisp routine to include a message that displays when the routine is loaded?

Tharwat 发表于 2022-7-6 11:37:50

Add this to the end of you routine and rename the red colored text according
to your routine name.
 

(princ "\nTEST.lsp loaded...")(princ "\nType TEST to start program")
 
Regards
 
Tharwat

caddcop 发表于 2022-7-6 12:00:43

OK, let me add this, the added lines must be outside of any and all other parentheses. I had already tried this, but had them insde one of the other functions, apparently.
 
Lisp is all very new to me.
页: [1]
查看完整版本: Function - Run on Load