jpkibble
26.11.2010, 15:42
Hi I'm trying to draw a simple polyline from a csv file of x and y coordinates.I can open and read the csv file fine but can't get a loop to work within a line command drawing the line from point to point in a while loop.I've tried lots of things without success, the code below best explains what I'm trying to acheive.(defun c:csv ()(setq selfile (getfiled "Select File" "" "CSV" 0))(setq openfile (open selfile "r"))(command "pline" (while (setq line (read-line openfile)))))Any ideas?