Using Find/Replace with Multiline Attributes

Using Find/Replace with Multiline Attributes

Anonymous
Not applicable
3,734 Views
12 Replies
Message 1 of 13

Using Find/Replace with Multiline Attributes

Anonymous
Not applicable

I have some detail callout blocks with multiline attributes and would like to use find/replace to chance the view number and sheet number at the same time.  Does anyone know how to do this? 

 

I've attached a .dwg with the blocks.  For example, I'd like to use Find/Replace to change 5/4101 to 7/4102.

 

Thanks!

0 Likes
Accepted solutions (1)
3,735 Views
12 Replies
Replies (12)
Message 2 of 13

wispoxy
Advisor
Advisor

More find options

Click more options button to expand the find dialog box. You can refine your search further by using these options.

advanced options

Yes, it can find text in blocks or xref too. But it can’t find value in fields. I think it will be great to find values in field to, because sometimes we need to review fields values.

For additional information, we also have spell checker in AutoCAD.

check spelling

It works almost the same with find and replace text, only here, we compare it to AutoCAD dictionary.

0 Likes
Message 3 of 13

wispoxy
Advisor
Advisor
Make sure 'Block Attribute Value' is checked in the find and replace options.
0 Likes
Message 4 of 13

Anonymous
Not applicable

Yes, I'm aware of that option in the Find and Replace setting. I would like to do something more specific though which is involving multiline attributes.  Please refer to cad file attached and the specific example I provided in the original post.

0 Likes
Message 5 of 13

ToanDN
Consultant
Consultant

I guess you already know the problem is that you use ENTER to push the sheet number to the second line.  Without the ability to type in ENTER in the Find and Replace dialog, you would have to search using either by Detail Number or by Sheet Number.  By Sheet Number is easy because the text string is longer.  By Detail Number is more challenge because they only have 1 or 2 characters, so you would need to check the 'Find whole words only' option.  From the result list you can Replace the one you want.

 

Capture.PNG

0 Likes
Message 6 of 13

Anonymous
Not applicable

Yeah that's the whole problem.  Often times we change a detail's sheet and view number in the drawing set and there are sometimes 200 callouts in our elevation files. I just need a way to find all callout blocks with a certain view number and sheet number and then replace with whatever.

 

The way I currently do it is to do a search for the sheet number, create a selection set, move all of those up 1000', then do two more find/replaces with that selection set to change the sheet number then the view number.  Quite arduous when the current project has (9) different elevation files.  What I really want to do is use Lee Mac's Batch Find & Replace Text lisp to do this across all files at once.

 

Is there a way to maybe not hit a return on the text and do a space instead and then let the text wrap so the sheet number is below the view number?

0 Likes
Message 7 of 13

ToanDN
Consultant
Consultant
Accepted solution

@Anonymous wrote:

 

Is there a way to maybe not hit a return on the text and do a space instead and then let the text wrap so the sheet number is below the view number?


You can do it with a space between View number and Sheet number with text warp when you first enter the value in the callout.  Now after the fact that they already there, it will be more difficult to fix.  I will try my best based on the example you provided:

 

  • Edit the block and adjust the attribute width to allow text wrap.  Attsync.
  • Find '5' with match whole words checked.  You will get 5 callouts highlighted.  Create a selection set.
  • Go back to drawing space with the selection.  Mass edit the attribute content of the selection from the Properties Palette: delete the existing and enter '5 4101'.
  • There you have all the 5/4101 callout fixed.  You have to repeat for others.

 

This maybe more efficient than manually select on screen when you have lots of them at different places.

 

Another possibility is use an another more powerful external program to find and replace the text string from the dwg without destrying the drawing integrity.  But I do not know of any myself.

0 Likes
Message 8 of 13

Anonymous
Not applicable

It works! Now I can search for a specific detail callout and not just the sheet number or view number. No problem with the existing...I'm just trying to fix the actual block for future use.  I will just edit the attribute in the block to not have a hard return and then when I insert it into a drawing, I will have to add a space and make the text width more narrow to have it wrap. Very nice, my boss will love this one!!

0 Likes
Message 9 of 13

wispoxy
Advisor
Advisor

You're saying you know about my steps, yet when I search for ''5\P4101' It instantly goes toa  5 4101 block.

 

It's working fine for me.

0 Likes
Message 10 of 13

wispoxy
Advisor
Advisor

Just search exactly for '5\P4101 works for me

----------------------------------------------------------------------

This is the longway.--------->

 

You can do it with a space between View number and Sheet number with text warp when you first enter the value in the callout.  Now after the fact that they already there, it will be more difficult to fix.  I will try my best based on the example you provided:

 

  • Edit the block and adjust the attribute width to allow text wrap.  Attsync.
  • Find '5' with match whole words checked.  You will get 5 callouts highlighted.  Create a selection set.
  • Go back to drawing space with the selection.  Mass edit the attribute content of the selection from the Properties Palette: delete the existing and enter '5 4101'.
  • There you have all the 5/4101 callout fixed.  You have to repeat for others.

 

This maybe more efficient than manually select on screen when you have lots of them at different places.

 

Another possibility is use an another more powerful external program to find and replace the text string from the dwg without destrying the drawing integrity.  But I do not know of any myself.

0 Likes
Message 11 of 13

Anonymous
Not applicable

Hmmm, when I search using the Find and Replace command and use the exact settings in your screenshot above I am yielding zero search results.  Which version of AutoCAD are you using?  I'm on AutoCAD Architecture 2014  and have read that "\P" is not supported in Find and Replace.  That was actually the first thing I tried when I noticed that there is a "\P" when you look at the attribute in the block's properties.

0 Likes
Message 12 of 13

Anonymous
Not applicable

And really I'm just trying to create a new block to use in the future that gives me this functionality.  All of our existing projects use the default AutoCAD Architecture block that has two separate attributes for sheetnumber and sheetview.

0 Likes
Message 13 of 13

wispoxy
Advisor
Advisor

Using AutoCAD 2016 and finds the block with 2 piece text. Not sure about other versions.

0 Likes