muck Posted September 29, 2011 Posted September 29, 2011 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, Quote
ReMark Posted September 29, 2011 Posted September 29, 2011 (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 September 29, 2011 by ReMark Quote
rkent Posted September 29, 2011 Posted September 29, 2011 Use an apostrophe before the # sign, otherwise it is seen as a wildcard, in this case # = any numeric digits. find '#12 Quote
ReMark Posted September 29, 2011 Posted September 29, 2011 I don't understand why it works on my 2010 and 2012 versions but not in the OP's 2011 version. Quote
Jack_O'neill Posted September 29, 2011 Posted September 29, 2011 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. 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. Quote
rkent Posted September 29, 2011 Posted September 29, 2011 Jack, I think the OP has "use wildcards" box checked, they need to uncheck that. Quote
Recommended Posts
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.