muck Posted April 4, 2011 Share Posted April 4, 2011 AutoCAD 2010 Does anyone have an AutoCAD VBA Find/search routine that would zoom in on stings in a drawing including blocks etc? Simular to the AutoCAD find command. I would like have a routine that I could put in a VBA batch loop to search many drawings at once. I have many drawings that I am looking through and I think that would help me. Thank you, Quote Link to comment Share on other sites More sharing options...
BlackBox Posted April 4, 2011 Share Posted April 4, 2011 I do not know of any VBA routines that accomplish this, but an excellent LISP routine is Lee Mac's Batch Find & Replace Text. Quote Link to comment Share on other sites More sharing options...
muck Posted April 6, 2011 Author Share Posted April 6, 2011 I am looking for a Search Tool in VBA. Not a replace routine. Something that zooms in on text to see if certain string is in a drawing. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted April 11, 2011 Share Posted April 11, 2011 Like Renderman you have to search first before you can replace! This is search for blocks just change for serach for text, mtext etc Dim SS As AcadSelectionSet Dim Count As Integer Dim FilterDXFCode(1) As Integer Dim FilterDXFVal(1) As Variant Dim attribs As Variant Dim BLOCK_NAME As String On Error Resume Next FilterDXFCode(0) = 0 FilterDXFVal(0) = "INSERT" FilterDXFCode(1) = 2 FilterDXFVal(1) = "Myblockname" Set SS = ThisDrawing.SelectionSets.Add("issued") SS.Select acSelectionSetAll, , , FilterDXFCode, FilterDXFVal For Cntr = 0 To SS.Count - 1 do what ever here and find string Quote Link to comment Share on other sites More sharing options...
BlackBox Posted April 11, 2011 Share Posted April 11, 2011 Like Renderman you have to search first before you can replace! What an excellent 'reminder' of the differences between specified, and implied tasks. :wink: Thanks for the code snippet, Bigal. Cheers! Quote Link to comment Share on other sites More sharing options...
RickyD302 Posted April 21, 2011 Share Posted April 21, 2011 The Find and Replaced by Lee Macs does just a search. Quote Link to comment Share on other sites More sharing options...
muck Posted April 27, 2011 Author Share Posted April 27, 2011 Is Bigal's Code complete? Thank you Quote Link to comment Share on other sites More sharing options...
BlackBox Posted April 27, 2011 Share Posted April 27, 2011 Is Bigal's Code complete? You tell us... what happens when you test it in VBAIDE? Quote Link to comment Share on other sites More sharing options...
joeybuttta Posted May 4, 2011 Share Posted May 4, 2011 I don't have the actual code, but I do use "Superfind" which is a very powerful VBA find and replace. Doesn't need to open drawings, pretty quick replace tool. If you can't find it searching online, let me know and I'll send it to you. Quote Link to comment Share on other sites More sharing options...
francisquintos Posted August 23, 2011 Share Posted August 23, 2011 joey! good day to you! i need also the superfind tool and it'll be appreciated more if you'll send it to me too. My email add is francisquintos@yahoo.com. Thank you very much joey! Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 23, 2011 Share Posted August 23, 2011 joey! good day to you! i need also the superfind tool and it'll be appreciated more if you'll send it to me too. My email add is @snip.com.Thank you very much joey! SPAM ALERT! I'd suggest that you NOT post your private email address in the future. Quote Link to comment Share on other sites More sharing options...
francisquintos Posted August 25, 2011 Share Posted August 25, 2011 thanks renderman for the reminder. Quote Link to comment Share on other sites More sharing options...
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.