how to end object selection in autolisp

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Very new to autolisp. Very simple question here frustrating the heck out of me.
I am trying to select all objects. It selects all objects but I cannot figure out how to tell it I am done selecting. In commandline you just press enter and that tells it you are done selecting, but in autolisp it doesnt work
I have tried all of the following;
(command "_SELECT" "ALL" "")
(command "_SELECT" "ALL" " ")
(command "_SELECT" "ALL" "" "")
(command "_SELECT" "ALL" "\n")
(command "_SELECT" "ALL" "\r")
(command "_SELECT ALL \n\n")
None of those work. In all cases it says "Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/Add/Remove/Multiple/Previous/Undo/AUto/SIngle/SUbobject/Object
Autolisp error: Function cancelled"
It then ends the function and command line resumes with a prompt to continue selecting objects
How to convince it that I am really done selecting objects?
Thanks