 - (defun c:tt (/ lastent e attlst)
-   (setq lastent (entlast))
-   (if (setq e (entsel "\nPick Object: "))
-     (progn
-       (setvar "cmdecho" 1)
-       (command ".copy" e "")
-       (while (/= (getvar "cmdnames") "")
-     (command pause)
-       )
-       (setvar "cmdecho" 0)
-       (if (not (equal (entlast) lastent))
-     (progn
-       (setq
-         attlst (vlax-invoke
-              (vlax-ename->vla-object (entlast))
-              'getattributes
-            )
-       )
-       (foreach x attlst
-         (if    (= (vla-get-tagstring x) "內孔:")
-           (vla-put-color x 1)
-         )
-       )
-     )
-       )
-     )
-   )
-   (princ)
- )
|