- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I have noticed that using the "ssgetfirst" command to get the selected and gripped items does not work from within an *.scr file. Using it on the command line works. Using it in an AutoLISP function works. But as long as it is placed within an *.scr file, it does not. This is the case not only if the *.scr file is executed through a dialog window, but also if it is executed through the AutoLISP statement (command "script" "C:\\CADScriptFile.scr"), which itself is typed in the AutoCAD command line.
System variable "PICKFIRST" has already been set to 1 and "QAFLAGS" already to 0. Also, using the AutoLISP alternative (ssget "_P") works, but it always returns the last selection set, even if it is not active during execution of the script, in which case a nil return would be expected.
Please note that I am using AutoCAD LT.
Cheers and thanks a lot in advance for any help.
Solved! Go to Solution.