- 积分
- 4650
- 明经币
- 个
- 注册时间
- 2007-7-15
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2019-6-18 15:40:50
|
显示全部楼层
本帖最后由 wen1235 于 2019-6-19 09:04 编辑
(defun c:tec (/ dh d h strh strd p)
(if (not (eq "" (setq dh (getstring t "\n*** 输入矩形长@高: "))))
(progn (setq d (vl-string-subst "," "," dh)) ;;四个方向输入 -15,12 -15,-12 15,12 15,-12 支持中文逗号 支持空格
(setq d (vl-string-subst "," " " d))
(setq strh (member 44 (vl-string->list d)))
(setq h (read (vl-list->string (cdr strh))))
(setq strd (member 44 (reverse (vl-string->list d))))
(setq d (read (vl-list->string (reverse (cdr strd)))))
(while (and dh h d (setq p (getpoint "\n*** 选取放置点: ")))
(command "_rectang" "non" p "non" (list (+ (car p) d) (+ (cadr p) h)))
)
)
)
(princ)
)
|
|