- (defun c:tt ( / ss i pt1 ent1 typeA )
- (setq ss (ssget '((0 . "*TEXT"))))
- (if ss
- (progn
- (setq i 0
- pt1 (getpoint "\n指定定位点")
- )
- (repeat (sslength ss)
- (setq ent1 (entget (ssname ss i))
- typeA (cdr (assoc 1 ent1))
- i (1+ i)
- )
- (entmake (list '(0 . "LINE")
- (cons 8 "LX")
- (assoc 10 ent1)
- (cons 11 pt1)
- )
- )
- )
- )
- )
- (princ)
- )
|