Qselect dialog suppression?

Qselect dialog suppression?

Robin.GreenNielsen
Explorer Explorer
5,242 Views
3 Replies
Message 1 of 4

Qselect dialog suppression?

Robin.GreenNielsen
Explorer
Explorer

Hi. I am trying to suppress the dialog for Qselect to write a simple script. Basically;
Qselect -> Object Type -> Block References -> OK.

But since I can't suppress the dialog, I cannot see how to configure this in command line. Need a way to quickly select block references and explode the selection. 

0 Likes
5,243 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant

That's not possible, as far as I know -- it seems to be one of the very few commands that cannot operate at all without the dialog box.  But you can do it with AutoLisp [in simplest terms]:

 

(setq ss (ssget '((0 . "INSERT"))))

 

That will also accept Xref's and Array objects [and Windows Metafiles, and very-old-style Hatch patterns], but those can be accounted for if needed.

 

It can be altered in various ways, such as to accept selection of such things only on unlocked Layers, and/or to leave the selection selected/highlighted/gripped for you, and/or to find such things throughout the drawing for you, without User selection, and/or....

 

It leaves the selection in a variable called ss [change the name if you like].  You can then type in the variable name with preceding exclamation point -- !ss -- to use that selection at any regular command's object-selection prompt.  Or if that's always what you're going to do with such a selection, a custom command can be defined to include that.

Kent Cooper, AIA
0 Likes
Message 3 of 4

pendean
Community Legend
Community Legend

@Kent1Cooper wrote:

That's not possible, as far as I know -- it seems to be one of the very few commands that cannot operate at all without the dialog box.  But you can do it with AutoLisp [in simplest terms]:

 

(setq ss (ssget '((0 . "INSERT"))))


@Kent1Cooper Op is using LT2023!

 

@Robin.GreenNielsen you posted in the wrong forum earlier, now it's been moved to the correct one. If you want to use the excellent LISP alternative proposed above, you'll need to upgrade to LT2024 first.

0 Likes
Message 4 of 4

h_s_walker
Mentor
Mentor

@Robin.GreenNielsen put the following in a toolbar button. The only thing you then need to do is select one block

^c^c^cSELECTSIMILAR;\;EXPLODE;

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud