Kate M
3rd Dec 2003, 08:55 pm
Hey guys,
I just tried to make my very first lisp routine -- it's supposed to choose the delta option in the lengthen command so I don't have to. It seems to work fine, but I can't figure out how to keep it from displaying two lines of "enter delta length." I tried removing the (princ), but then it put "nil" after the first line -- the command still worked. Any suggestions on fixing this? Thanks!!
-Kate
;;;Lengthen Delta
(defun c:ld()
(command "lengthen" "de")
(princ)
)
Command: ld
lengthen
Select an object or [DElta/Percent/Total/DYnamic]: de
Enter delta length or [Angle] <-1'-0">:
Enter delta length or [Angle] <-1'-0">: 6
I just tried to make my very first lisp routine -- it's supposed to choose the delta option in the lengthen command so I don't have to. It seems to work fine, but I can't figure out how to keep it from displaying two lines of "enter delta length." I tried removing the (princ), but then it put "nil" after the first line -- the command still worked. Any suggestions on fixing this? Thanks!!
-Kate
;;;Lengthen Delta
(defun c:ld()
(command "lengthen" "de")
(princ)
)
Command: ld
lengthen
Select an object or [DElta/Percent/Total/DYnamic]: de
Enter delta length or [Angle] <-1'-0">:
Enter delta length or [Angle] <-1'-0">: 6