select command not selecting

select command not selecting

126843
Participant Participant
1,126 Views
4 Replies
Message 1 of 5

select command not selecting

126843
Participant
Participant

Hello i have a problem wth select

 

For example i have slection set ss1

 

And i want to select this selection set but when i type this in autocad command prompt

 

(command "select" ss1)

 

it selects desired objects but prompts me to select more object and when i hit enter or space it deselcts everything.

 

How to handle this?

0 Likes
1,127 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

The Select command seems to work somewhat different in an AutoLisp (command) function than at the command line.  You can have it all selected/highlighted/gripped this way:

 

(sssetfirst nil ss1)

Kent Cooper, AIA
0 Likes
Message 3 of 5

ВeekeeCZ
Consultant
Consultant

Use the PSELECT command instead of SELECT

 

Not sure weather you want to add some more objects or not... if not you need to close the selection using "".

 

(command "_.PSELECT" ss1 "")

0 Likes
Message 4 of 5

john.uhden
Mentor
Mentor

Don't use the Select command.  Use (ssget) instead.  And (sssetfirst) is way cool.

Also, if you already have a selection set, then why do you think you need to select it?  Do you go reaching around for a fork that is already in your hand?

John F. Uhden

Message 5 of 5

Ranjit_Singh
Advisor
Advisor

@126843 wrote:

......... but when i type this in autocad command prompt

(command "select" ss1)

..........


Don't call the auto lisp command function at the command prompt. Simply start the command and at selection prompt type !ss1

Command: SELECT
Select objects: !ss1
<Selection set: 6ba>
1 found
0 Likes