- (defun c:test()
- (if (setq ssa (ssget "x" '((0 . "text"))))
- (progn
- (setq name (open "d:\\test.csv" "w")
- n (sslength ssa)
- i 0
- )
- (repeat n
- (setq ent (ssname ssa i)
- zfc (cdr (assoc 1 (entget ent)))
- i (1+ i)
- )
- (if (= (read zfc) (atof zfc))
- (princ (strcat zfc "\n") name)
- )
- )
- (close name)
-
- )
- )
- (princ)
- )
|