本帖最后由 yjr111 于 2012-6-15 23:30 编辑
  - ;;;;程序未处理缩短长度大于已有长度或圆弧增大长度超过圆周长的情况,请自行添加判断;;;;;;;;;;
- (defun c:doublextend (/ ss e n )
- (setq oldosmode (getvar "osmode"))
- (setvar "osmode" 0)
- (setvar "cmdecho" 0)
- (if *dist*
- (setq dist (getdist (strcat "\n请输入每边变化值:< " (rtos *dist* 2 0) ">")))
- (setq dist (getdist "\n请输入每边变化值: "))
- )
- (if (not dist) (setq dist *dist*) (setq *dist* dist))
- (princ "\n请选择对象:")
- (while(setq ss (ssget '((0 . "LINE,ARC"))))
- (while (and ss (>(setq n(sslength ss))0))
- 。。。。。。。。。。。。。。。。。。
|