NECRO BUMP!
Ok, I'm confused. Somehow I seem to have broken my little utility that y'all helped me to hack together.
;;;--- GET SELECTION SET OF EXISTING SURVEY POINTS AND ASSIGN IT TO SOMETHING TO BE CALLED
(setq ss(ssget "_X" (list (cons 0 "ACAD_PROXY_ENTITY"))))
;;;--- BEGIN WHILE LOOP TO RUN TYPICAL ACTIONS
(while (< 0 (sslength ss))
(command "explode" (ssname ss 0))
(surveycleaner)
(ssdel (ssname ss 0) ss)
)
(princ)
)
Given the above code, and verifying that I -do- indeed have a number of ACAD_PROXY_ENTITY's in my drawing, when the above code gets to the "EXPLODE" command (for the first time), it returns an error:
Command: ; error: bad argument type: lselsetp nil
Which I understand to mean that my selection set is 'nil' when I try to run a command on it.
I don't understand why that is though. In my limited understanding, I go through the code and see no reason why I don't have selections made.
I've attached the lisp file and the drawing in their entirety, if it helps.