Jump to content

Search and Replace in autoCAD 2010


Recommended Posts

Posted

Using AutoCAD 2010.

 

In a drawing I would trying to change #12 to #10 with AutoCAD's search and replace feature and it

did not work. What can be the problem here? It there a good text search replace Lisp or VBA routine

routine that is better than AutoCAD's routine? Is so where is it located on the net?

Thank you,

Posted (edited)

I just did a quick test using AutoCAD 2012 and it works. Not sure what is the cause of your problem.

 

Another quick test but this time I used AutoCAD 2010. Inserted thirteen copies of the text and did a Find/Replace to and it worked.

 

Try it in a new drawing and see what happens.

 

Last test. Opened AutoCAD 2007. Did the same as above. Result: Failed to find any occurrences of #12 in the drawing.

 

Since you are just changing the number 2 to a zero why bother with the "#" sign at all?

Edited by ReMark
Posted

Use an apostrophe before the # sign, otherwise it is seen as a wildcard, in this case # = any numeric digits.

 

find

'#12

Posted

I don't understand why it works on my 2010 and 2012 versions but not in the OP's 2011 version.

Posted

In the 2010 find and replace dialog, be sure you pull the arrow down that shows your options. It may be that you have something unchecked.

find.PNG

 

I tried it on my 07 machine and had the same result. The # screws it up. In 2007 the # is a special character, not plain text.

 

From 2007 help file:

Note Whether AutoStack is on or off, the pound character is always converted to a diagonal fraction, and the carat character is always converted to a tolerance format.

 

 

When I tell 07 to replace # with z, it leaves the # and replaces both digits following it with z (in other words it leaves the string #zz).

 

 

Autodesk apparently improved the find and replace engine in 2010 because although # will still serve that function, the replace function doesn't ignore it now.

Posted

Jack,

I think the OP has "use wildcards" box checked, they need to uncheck that.

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...