I'm trying to loop through a series of queries in A2Kmap and am having a problem with one of the loops. The problem is a lisp problem, nothing to do with map so that's why it's here. I'm reading a series of text files, each of which is a lisp function. I want to read the file and then run it.
....
(ade_qryclear)
(ade_qrysettype "draw")
(qryd)
(command(eval qtrun))
(ade_qrydefine
'("AND"
""
""
"Property"
("layer" "=" "Lake,MarshLine,River")
""
)
)
....
and the qryd routine is(defun qryd (/ byline fn)
(setq
fn (open (strcat "c:\\Drawings\\querytest\\" query_to_run ".qry")
"r"
)
)
(setq qtrun "")
(while (setq byline (read-line fn))
(setq qtrun
(strcat
qtrun
byline
)
)
)
(close fn)
qtrun
)
This is the error message
(ade_qrydefine '("" "" "" "Location" ("polyline" "polygon" "crossing"
1 (0 0 1) 0.000000 (562958 6.23358e+006 0) 0.000000 (563171 6.22527e+006 0)
0.000000 (571373 6.22485e+006 0) 0.000000 (571799 6.23241e+006 0))"")) LISP
command is not available. :cry:Any suggestions?