Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

select = pselect in 2015

5 REPLIES 5
Reply
Message 1 of 6
tom_brabant
1084 Views, 5 Replies

select = pselect in 2015

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?

5 REPLIES 5
Message 2 of 6
paullimapa
in reply to: tom_brabant

There's no standard AutoCAD PSELECT command

 

AOL @ Exchange App Store         DDSetup @ Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 6
tom_brabant
in reply to: paullimapa

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.

Message 4 of 6
paullimapa
in reply to: tom_brabant

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)

 

AOL @ Exchange App Store         DDSetup @ Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 6
tom_brabant
in reply to: paullimapa

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 🙂

Message 6 of 6
Kent1Cooper
in reply to: tom_brabant


@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"))

Kent Cooper, AIA

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost