- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Hoping someone can help me with this lisp command I cannot get to work on startup.
My Issue
I have a ton of drawings that contain a text style with a missing font. By missing I mean I open the Text Style editor and when I click on the text style, it doesn't show a font at all. Also any text on the text style I double click to edit appear blank. If I manually change the text style font to something else like standard, problem solved.
My Solution
I created a batch file that that opens all the drawings in a folder and runs a script each time.
FOR %%f in (C:\"Temp"\"Convert"\*.dwg) do start /wait C:\"Program Files"\"Autodesk"\"AutoCAD 2016"\acad.exe "%%f" /b "C:\Change_Font.scr"
The script then loads the lisp.
(load "U:\\Change_Font.lsp")
And the script then runs the "_style" command to change the text style font to standard.shx.
(defun C:TextStyleFontChange () (command "_style" "Style-WORKING" "standard.shx" "" "" "" "" "" "") )
If I load into a single drawing, load the lisp via appload, and then type in the function name "TEXTSTYLEFONTCHANGE" the text style font will change to the standard.shx. But if I run it through the Batch>Script>Lisp process, it does nothing.
Am I missing a command in there? Do I need to also run a command after similar to how I had to type in the function name to run it manually? Any help would be very much appreciated as there are tens of thousands of drawings that this needs to be ran on.
Thanks
Solved! Go to Solution.