Jump to content

Select blocks containing a word


danielk

Recommended Posts

Looking for a lisp that can search and select all the blcoks containing a word , even if its just the part of the block name .

quickselect wasn't good for this one...

 

Thanks

Link to comment
Share on other sites

Try using the FILTER tool instead. You can use wildcard matches in the Block Name text box. For example if the block name was "BLOCK-FURNITURE-TABLE" you could do *FURN* and it would grab only blocks with "FURN" in the block name.

  • Like 1
Link to comment
Share on other sites

Try using the FILTER tool instead. You can use wildcard matches in the Block Name text box. For example if the block name was "BLOCK-FURNITURE-TABLE" you could do *FURN* and it would grab only blocks with "FURN" in the block name.

 

did not know about filter never used it but i will keep it in mind

 

Thanks tz

Link to comment
Share on other sites

did not know about filter never used it but i will keep it in mind

 

Thanks tz

Best part about it is the ability to save your selection sets for future and repetitive use. Quick Select does not have this feature for some ridiculous reason.
Link to comment
Share on other sites

like i always said cad has tons of commands and users never uses them, and if they do get to be used 75% of user will never use them in their lifetime.

 

Therefore some says that cad is the pits i disagree for that reason.

 

r

Link to comment
Share on other sites

  • 9 years later...

I think you should read about the possibilities of wcmatch. See the help file.

You can write

 (setq ss (ssget "X" (list (cons 0 "INSERT") (cons 2 "*block?")))))

That will select all the blocks (inserts) containing in their name the word "block" followed by an other character, like "My_block6" or "the_blockA".

A lot of more possibilities... as I said, search in the help.

Edited by fuccaro
typo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...