 - (defun c:r ()
- (while (and (setq p0 (getpoint "\n圆心点<退出>: "))
- (setq str (getstring "\n半径表达式<退出>: "))
- )
- (command "circle" "non" p0 (CAL str))
- )
- (princ)
- )
- (defun c:l ()
- (while (and (setq p0 (getpoint "\n起点<退出>: "))
- (setq str (getstring "\n长度表达式<退出>: "))
- )
- (setq p1 (polar p0 0 (CAL str)))
- (command "line" "non" p0 "non" p1 "")
- )
- (princ)
- )
|