Hello,
I'm learning and trying to build a LISP routine that works with DraftSight. I'm using this site, afraLISP, as a starting point, but I'm having trouble printing out the results. The site is designed for AutoCAD users, but I figured DraftSight would use the same functions in LISP in order to run in the program.
;; First LISP procedure (defun C:SAYHELLO(/ pntl pnt2)
;; User Interaction (setq sfName (getstring "\\nType your first name: ")) (setq slName (getstring "\\nType your last name: "))
;; Printing Results
;; Printing "Hello [first name] [last name]!" (princ "Hello ") (princ sfName) (Princ " ") (princ slName) (princ "!") )
I've tried "print", "princ" (listed), "prin1", "prompt", and "printing" as listed in afraLISP, but I keep running into the same error message. How do I need to print a string of text to the Command Window?
