本帖最后由 【KAIXIN】 于 2012-5-24 14:45 编辑
 - ;;;数字文本递增复制(通用函数在12楼)
- (defun c:XX()
- (setq s1 (car (entsel "\n数字文本: "))
- ure (KX-UREAL 1 "" "增值: " ure)
- tx (KX-get-dxf 1 s1)
- pt5 (KX-get-MinMaxPoint s1 5)
- s0 (entlast)
- i 0
- )
- (if (setq tx1 (distof tx))
- (progn
- (while (setq pt2 (getpoint pt5 "\n复制位置<退出>: "))
- (setq tx-new (rtos (+ tx1 (* ure (setq i (1+ i)))) 2 3))
- (command "copy" s1 "" pt5 pt2)
- (KX-SubUpd (entlast) 1 tx-new)
- )
- )
- )
- )
|