andrew299
Here is a very crude lisp file that will let you create a file and then let you pick points and they will be written to that file with the point number, x-coord, y-coord, z-coord (comma delimited). The number of decimal places depends on what you have them set to in Acad. This was created by cutting and pasting code from various lisp files. It works in R14 and I don't see why it would not work for other releases
Hope this helps,
SEMott
(defun C:xyz-export (/ Temp_Name Temp_File File_Name
Count xc yc zc Coords)
(setvar "cmdecho" 0)
(setq Temp_Name (getstring "Enter the file name: "

)
(setq Temp_File (open Temp_Name "r"

)
(if (/= Temp_File nil)
(progn
(prompt "File already exists.\n"

(close Temp_File)
)
(progn
(setq File_Name (open Temp_Name "w"

)
(prompt "\nFile now open"

(setq Exit nil)
(setq Count 0)
(while (null Exit)
(setq p1 (getpoint "\nSelect Point for Coordinate Export: "

)
(cond
((null P1)(setq Exit 1))
(t (progn
(setq
count (1+ count)
xc (rtos (car p1) 2)
yc (rtos (cadr p1) 2)
zc (rtos (caddr p1) 2)
coords (strcat (rtos count 2 0) (chr 44) xc (chr 44) yc (chr 44) zc)
)
(write-line coords File_Name)
)
)
)
)
(close File_Name)
)
)
)