AutoCAD + VBA + Find
AutoCAD + VBA + Find
(OP)
Ok. I have a list of text strings that I want to search for in multiple .dwg drawings in a directory (the text can either be in .txt or .xls format).
Is there a way to use VBA to sequentially search through each drawing and zoom to the text in in the list one at a time? (having the user hit 'ok' or something for the vba code to move to the next item in the list.
.xls or .txt text list list of autoCAD dwgs
item 1 drawing 1.dwg
item 2 drawing 2.dwg
item 3 drawing 3.dwg
the program would seach for item 1 in each drawing (unil it has found in in the drawing list, contained in a specified directory), zoom to it, and when the user hits 'ok' would move on to item 2, and start searching the .dwg list...etc.
Is there a way to use VBA to sequentially search through each drawing and zoom to the text in in the list one at a time? (having the user hit 'ok' or something for the vba code to move to the next item in the list.
.xls or .txt text list list of autoCAD dwgs
item 1 drawing 1.dwg
item 2 drawing 2.dwg
item 3 drawing 3.dwg
the program would seach for item 1 in each drawing (unil it has found in in the drawing list, contained in a specified directory), zoom to it, and when the user hits 'ok' would move on to item 2, and start searching the .dwg list...etc.





RE: AutoCAD + VBA + Find
Which part are you having trouble with, parsing a list of drawings, or performing the actual search?
RE: AutoCAD + VBA + Find
1)get the name from .txt or .xls
2)get the name of .dwg in the specified directory
3)are they the same True or False
Oh! by the way one more important thing is the FileListBox.ListCount.
Patrick