(setq filehandle (open "path/filename" "r"))
(while (setq line (read-line filehandle))
;; if your string is not "x,y,z"
;; then process the string here
(setq datalist (cons line datalist))
(foreach pt (reverse datalist)
(command "._POINT" pt)
I don't know how your file is formatted. If it is x,y,z in each single
line, then you can pass the string directly to the POINT command, or
if you need the coordinates in LISP format then you could substitute
(vl-string-subst) the commas with spaces, add (strcat) a leading "("
and a trailing ")" to each line (inside the while loop) and use
(setq datalist (cons (read line) datalist))
ArchTools: Architektur-Werkzeuge für AutoCAD (TM)
ArchDIM - architekturgerechte Bemaßung und Höhenkoten
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.