- ;;;;;;;;;;;;;;;;;;
- (defun 10zu ( e / e)
- (cdr(assoc 51(entget e)))
- )
- ;;;;;;;;;;;;;;;;;;
- (defun c:tt11 ( / lst ent pts pt demj zmj i) ;求平均数
- (setq lst (ssget '((0 . "DIMENSION") (8 . "占地图标注") ) ) )
-
- (setq i 0)
- ;(setq zmj 0.000)
-
- (while (< i (sslength lst))
- (setq ent (ssname lst i))
- (entmod (subst (cons 51 (+ pi (10zu ent) )) (assoc 51(entget ent)) (entget ent) ))
- (setq i (+ i 1))
- )
- )
|