 - (defun c:tt (/ ss filename f e)
- (if (setq ss (ssget '((0 . "hatch"))))
- (progn
- (setq filename (VL-FILENAME-MKTEMP "hand" "" ".txt"))
- (setq f (open filename "w"))
- (repeat (setq n (sslength ss))
- (if (VL-CATCH-ALL-ERROR-P
- (VL-CATCH-ALL-APPLY
- 'vla-get-area
- (list (vlax-ename->vla-object
- (setq e (ssname ss (setq n (1- n))))
- )
- )
- )
- )
- (progn
- (redraw e 3)
- (WRITE-LINE (cdr (assoc 5 (entget e))) f)
- )
- )
- )
- (close f)
- (startapp "notepad.exe" filename)
- )
- )
- (princ)
- )
|