thanks a lot man.. this stuff is a bit over my head.
I'm going to try to incorporate it into my code.
I was almost making it work with a workaround, but just couldn't write an *error* function for when I hit Esc
this is the part where I almost got it to work
(while (setq gr (grread T))
(setq imagedict (dictsearch (namedobjdict) "ACAD_IMAGE_DICT")
imagefiles (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= 3 (car x))) imagedict))
gr_lst (cons gr gr_lst)
);setq
(if
(or
(= 2 (car gr))
(= 11 (car gr))
);or
(progn
(setq gr2 (chr (cadr gr))
gr (nth 1 gr_lst)
);setq
);progn
);if
I was storing all the grread input into the gr_lst list so that when I press a key it would define a variable for it and would retrieve the coordinate prior to the key press, because the routine would stop whenever the gr variable was not a coordinate.
the problem now was how to write a proper *error* function
edit - by the way how do you create that code section with the color?