有画线的过程- (defun c:tt (/ pt set-dxf ty)
- (defun set-dxf (ename code val / ent)
- (setq ent (entget ename))
- (if (and (listp code) (listp val))
- (mapcar '(lambda (x y) (set-dxf ename x y)) code val)
- (progn
- (if (assoc code ent)
- (setq ent (subst (cons code val) (assoc code ent) ent))
- (setq ent (append ent (list (cons code val))))
- )
- (entmod ent)
- (entupd ename)
- )
- )
- ename
- )
- (setq pt(getpoint"\n下一点:"))
- (command "pline" pt)
- (while (NOT (ZEROP (GETVAR "cmdactive"))) (command PAUSE))
- (setq ty (entlast))
- (set-dxf ty '(8 370) '("你好123" 90))
- (princ)
- )
|