Jump to content

Select block by specific caracter in atribute value tag


Jonh

Recommended Posts

Hello. I have a drawing with measured points represented as block reference with atributes. The atribute tag "name" contains the initial of the surveyor and point number ( ex C1001; I1235; F552). I have to modify one atribute of the blocks that contain the letter "C"(capital c). I have found the folowing lisp writen by LeeMac that has a filter but it only selects the blocks if i write the full atribute value.What i would like to do is to give it the letter C and for it to select all blocks that have the respective leter in the value of the "name" atribute. (C101-C2365).

 

Thank you and have a nice day.

bsel.lsp

Link to comment
Share on other sites

20 hours ago, Jonh said:

Hello. I have a drawing with measured points represented as block reference with atributes. The atribute tag "name" contains the initial of the surveyor and point number ( ex C1001; I1235; F552). I have to modify one atribute of the blocks that contain the letter "C"(capital c). I have found the folowing lisp writen by LeeMac that has a filter but it only selects the blocks if i write the full atribute value.What i would like to do is to give it the letter C and for it to select all blocks that have the respective leter in the value of the "name" atribute. (C101-C2365).

 

Thank you and have a nice day.

bsel.lsp 3.81 kB · 4 downloads

 

I submitted a program here, maybe it might help you:

 

 

  • Like 1
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...