Hi,
what I get from your post....
1 "01, 02,03..." all are blocks with a single attribute.
2 The X-coordinate is NORTHING & Y-coordinate is EASTING
If so try this.....
(defun C:MC (/)
(setq BN (getstring "\nEnter the block Name to Select: "))
(Setq selectionset (ssget "_A" (list (cons 0 "insert")(cons 2 BN))))
(setq Text "POINTS,EASTING,NORTHING")
(repeat (setq N (sslength selectionset))
(setq Data (ssname selectionset (setq N (- N 1))))
(setq EntityData (entget Data))
(setq IP (cdr (assoc 10 EntityData)))
(setq elst(entget(entnext Data)))
(setq AT (cdr (assoc 1 elst)))
(setq Text (strcat text "\n" AT "," (rtos(nth 1 ip)) "," (rtos(nth 0 ip))))
)
(setq fn "C:\\output.csv"
fp (open fn "w")
)
(write-line text fp)
(close fp)
)
It will create a file at "C:\\output.csv".....
Only things you have to do.......
1 To enter the block name.
2 To sort the generated *.cvs file (to the column points)......
Hopefully you can manage the rest.......
Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....