Select block by parameter

Select block by parameter

gandi.nbgd
Contributor Contributor
601 Views
5 Replies
Message 1 of 6

Select block by parameter

gandi.nbgd
Contributor
Contributor

Hello,

is there any lisp for quick select block by custom parameter?

 

For example, select all block that have one of these two parameters (mirror parameter in block):

gandinbgd_0-1652280970939.png

 

I have some lisp that is selecting by attributes fields, but it is not working for this:

gandinbgd_1-1652281094846.png

 

0 Likes
602 Views
5 Replies
Replies (5)
Message 2 of 6

dmfrazier
Advisor
Advisor
0 Likes
Message 3 of 6

gandi.nbgd
Contributor
Contributor

Can't find there what I need. For me, I "only" have to select (or just count) block by its flip state (drawer in block on the left or the right side).

0 Likes
Message 4 of 6

dmfrazier
Advisor
Advisor

Sorry that my lead didn't work out.

I've lost track of exactly how I got from that discussion to the program I use now, but in any case, here's a copy of the LISP file. I hope it proves to be useful.

0 Likes
Message 5 of 6

gandi.nbgd
Contributor
Contributor

Thanks for that lisp!

Still no luck, this is what I need, but for some reason it can't read flip state. I also tried to rename my flip states to 0 or 1, like in lisp reading but nothing selected.
I will attach sample .dwg, I just need to select all desks with drawer on the left, or the right side. 

0 Likes
Message 6 of 6

dmfrazier
Advisor
Advisor

With the db in your drawing, it doesn't work for me either.

I notice that the block's properties look different in the Properties palette, compared to how they appear in the SSD dialog box.

In the former, the options for the "drawer" property (which is a "flip") appear as "left" or "right":

 

dmfrazier_0-1652875030920.png

 

But in the SSD dialog box they show up as "0" or "1":

 

dmfrazier_1-1652875116531.png

I don't know what would cause them to appear differently in the two places, but it seems that perhaps SSD is looking "deeper" into the db than Properties does.

The "flip" property also has the same options ("0" or "1"). I don't know why this would cause a problem, but maybe it's something (for someone) to look at.

0 Likes