Hi,
Is there a way to view and search all text strings that exist in a design file/files?
Would I have to output everything to a .txt file first?
My end goal is to be able to search for a string of text and then be able to tell which design file that text is present on.
Thanks
That would be a task for VBA or other programming language, and you will probably have to write it yourself.
You could get advice on your code at MicroStation Programming Forum You can also search the forum for other posts asking something similar.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
SB Owens said:My end goal is to be able to search for a string of text and then be able to tell which design file that text is present on
Write a Report that shows text, model and DGN file name. You can write the result of a Report to a CSV or Excel file. Once you have your Report working, use the batch processor to enumerate your DGN files.
Alternatively, adopt MaryB's suggestion, and create a VBA macro to enumerate DGN files and report text for each one. To get you started, here's a VBA text search macro we wrote earlier.
Regards, Jon Summers LA Solutions
As Jon suggested the best approach to see all text within a file would be to use a report.
SB Owens said:My end goal is to be able to search for a string of text and then be able to tell which design file that text is present on.
Do you mean which reference it is in or would you be checking different files. The ability to search for a specific text string is possible already through the Select by Attributes or the Find/Replace Text tools
SB Owens said:My end goal is to be able to search for a string of text and then be able to tell which design file that text is present on. Thanks
windows explorer search function already has this feature to search for strings as long as mstn is installed on the same pc you can get a list of files that contains specific string or specific text, not sure how to export this to a list but command line has findst command , if you know powershell you may also be able to do this ( not tried).
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me