I need to search a group of closed drawings for a text phrase. '30" ABOVE SLAB'
Any ideas?
I just placed a VBA project file "TextFind&Replace.dvb" to
The Pond that allows you to select which directory to find drawings in, select which drawings to search, what search phrase and what to replace it with.
At this point it doesn't list which drawings it found the text and modified it, but it won't be too hard too add that feature. This is a work in progress and is based on code found at CADVault.com. In fact the entire browse for folders/files is all code from there.
If you'd like to try it out, I do suggest trying it on some 'sample' drawings first. Wildcrds for the search string are NOT supported, so be as complet in your string to search for as you must. For instance, just entering an "e" for the search and replacing it with "AB", will replace ALL e's in the drawing(s) with AB......
Feedback is welcome and will result in a more polished end product.
Oh, users of ACAD prior to 2004 must make sure that Object.DBX is available to use. If you aren't sure, run this little code snippet to be sure.
(if (and (= (atoi (getvar "AcadVer")) 15)
(not (vl-registry-read "HKEY_CLASSES_ROOT\\ObjectDBX.AxDbDocument\\CLSID"))
)
(startapp "regsvr32.exe" (strcat "/s \"" (findfile "axdb15.dll") "\""))
)
Jeff