I've been working on a script to run in .DWG files to clean them up and standardize them after a Revit to .DWG export.
When Revit exports to DWG, the DWG will have multiple text styles used for every instance of viewport within the sheet. So, in the exported file, I wind up with multiple similar text styles.
For instance, in Revit, we use the RomanD font, and it exports to multiple RomanD text styles, I'll have RomanD, RomanD_1, RomanD_2, etc...
I need a lisp to change the font in all these RomanD text styles to RomanS.shx to meet client standards.
I've seen a few ways of doing this such as the command line below:
(command "_style" "RomanD" "romans.shx" "" "" "" "" "" "")
I'd like to do something like this, but have a wildcard in the style to change so that all RomanD* text styles has it's font changed to RomanS.shx. The amount of exported RomanD text styles varies per sheet/DWG file.
Any help would be appreciated.
Thank you!