You are on page 1of 1

Head LISP sample

(defun C:HEAD ()
;; 2018.06.29 modify by John
; *** 需要输入的数据

(setq TYPE (getreal "\nPlease choose (1) 10 : 1 (2) 2 : 1 , (1) or (2) : "))
(setq id (getreal "Please input the I.D. : "))
(setq sf (getreal "Please input the S.F. : "))
(setq INS (getpoint "Please input the insert point : "))
; ----- 角度的输入, 若之前已经执行过,角度的值会存在变量 ang-old,
; 不输入角度值,直接按[enter],ANG 会设成 nil.
; 利用 if 指令,将 ANG 的值改设成上一次输入的角度值 ang-old.
; 也就是, 像在 AutoCAD 的指令中常用到的内定值的操作方式般,
; 只要角度是内定值,user 只需按[enter],接受内定的数值,
; 不需每次都一定要输入数值.

You might also like