I've just jumped from using release 2010 and occasionally 2013 to 2015. I find that the SELECT command now seems to behave identically to the PSELECT command. I have code that invokes SELECT in order to make a selection set the "previous" selection, but now I'm getting the unwanted side effect of preselecting these entities, which in turn can make them vulnerable to subsequent commands if they act on selection sets. I looked for a system variable that might revert SELECT to legacy behaviour but couldn't find such. Does anyone have any suggestions?
There's no standard AutoCAD PSELECT command
The PSELECT command appears undocumented, but it's there (type it into the command prompt and you should get a "select objects:" prompt.)
But, I only included mention of it to characterize the change in behaviour of the SELECT command which is my real concern.
I need a way to tell autocad that I want a set of entities to be the previous selection set without turning on the entities' grips. The SELECT command once did this. Now it turns on the entities grips as well, and that is interfering with code. I've tried using
(command "SELECT" myselectionset "")
(command)
hoping that the call to command with no arguments, acting as a cancel, would clear the grips but I'm getting inconsistent results.
A workaround would be to include in your lisp routine a call to save the current GRIPS value (setq grips(getvar"GRIPS")) & then turn off GRIPS (setvar"GRIPS"0) before executing PSELECT or SELECT PREVIOUS. Then before exiting, set GRIPS value back (setvar"GRIPS"grips)
Even with the grips off, the selected entities remain highlighted.
I seem to be able to work around this by invoking (sssetfirst nil nil) prior to trying to access the previous selection set.
Thanks for your help on this, in spite of my never doing a good job of stating exactly what my problem was 🙂
@tom_brabant wrote:
....
I need a way to tell autocad that I want a set of entities to be the previous selection set without turning on the entities' grips. ....
Try:
(setq YourSSVariableName (ssget "_P"))