Quick Select Lisp to select all dimensions with same value

Quick Select Lisp to select all dimensions with same value

Anonymous
Not applicable
4,635 Views
21 Replies
Message 1 of 22

Quick Select Lisp to select all dimensions with same value

Anonymous
Not applicable

Need to select all the same dimensions with the same dimension style, layer, and value; and then prompt me to override the dimension, which is not necessary a numeric value.

 

I have been using Quick Select for this task but in most cases I have to work with a lot of dimensions in drawings and is time consuming and repetitive. I have tried the Action recorder and does not go past the command and does not select object type and properties; and I have to enter the numeric value to select all similar dimensions.

 

Can any help me out with a AutoLisp command that can do all this?

0 Likes
4,636 Views
21 Replies
Replies (21)
Message 21 of 22

Kent1Cooper
Consultant
Consultant

@dbhunia wrote:

....

....
(command "select" ss) (while (> (getvar 'cmdactive) 0) (command pause)) ....

....


 

Here's an interesting thing about the SELECT command, that is different  from any editing command involving object selection:  It can take any amount  of selection operations and options under one  User-input place-holder.  You can reduce the above quoted snippet to just:

 

  (command "_.select" ss pause)

 

Similarly, in macro format, you can use

 

  SELECT \

 

with that single backslash for User selection, and it will likewise let you pick multiple things, by individual selection or window or fence or lasso, remove, add, etc. -- all the options -- until you tell it your selection is complete, before it goes on to the next thing in the macro.

Kent Cooper, AIA
Message 22 of 22

Anonymous
Not applicable

Thank you. I really appreciate the time spent on this.

 

I tried out the autolisp but adding or removing a selection should be available after the initial duplicate dimensions selection routine. If the prompt for new value should comes after the selection option. Right now, it's stuck until a value is entered.

0 Likes