3451| 13
|
求让多个数字统一增加或减少数值的程序 |
1明经币
最佳答案(defun c:rea(/ n times en data dt)
(princ "\n选择数字:")
(setq ss (ssget (list (cons 0 "text"))))
(initget 1)
(setq dt (getreal "\n输入要加的值:"))
(if ss
(progn
(setq n 0 times (sslength ss))
(repeat times
(setq en (ssname ss n) data (entget en) number (read (cdr (assoc 1 data))))
(if (member (type number) '(INT REAL))
(progn
(setq data (subst (cons 1 (rtos (+ number dt) 2 2))(assoc 1 ...
| ||
相关帖子 |
||
发表于 2012-7-18 16:46:04
|
显示全部楼层
| ||
发表于 2012-7-18 17:43:17
|
显示全部楼层
| ||
发表于 2012-7-18 18:17:54
|
显示全部楼层
评分 | ||
| |
| |
发表于 2012-7-18 21:31:23
|
显示全部楼层
| ||
发表于 2012-7-18 22:41:18
|
显示全部楼层
| ||