Message 1 of 14
Lisp to set the fonts search path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following code that was created by Bigal and I modified to meet my needs, but I can't figure out how to set the fonts folder. I want to remove this: C:\Program Files\Autodesk\AutoCAD 2016\Fonts and replace it with Y:\Library\CAD Support Files\Fonts
The original code is here:
http://www.cadtutor.net/forum/archive/index.php/t-77358.html?s=7273bed22b69b0b962a29ed2e9740df1
This is what I have:
; resets the paths usefull for update versions of Autocad ; by BIGAL 2011 ; This sets a reference to the install path of your product ; the gets are their for info maybe other use ; use this to find other settings ;(vlax-dump-object (vla-get-files (vla-get-preferences (vlax-get-Acad-object))) T) (vl-load-com) ; make temp directory (vl-mkdir "c:\\Autocad Autosaves") (setq *files* (vla-get-files (vla-get-preferences (vlax-get-Acad-object)))) ; Autosave Location (vla-put-AutoSavepath *files* "C:\\Autocad Autosaves") ; Printers Configuration Search Path (vla-put-PrinterConfigPath *files* "Y:\\Library\\Plotters") ; Printer Description File Search Path (vla-put-PrinterDescPath *files* "Y:\\Library\\Plotters") ; Plot Style Table Search Path (vla-put-PrinterStyleSheetPath *files* "Y:\\Library\\CAD Support Files\\Plot styles") ; Drawing Template File Location (vla-put-TemplateDwgPath *files* "Y:\\Library\\CAD Support Files\\Template Files") ; Default Template File Name for QNEW (vla-put-QnewTemplateFile *files* "") ;make new support paths exist + new (setq paths (vla-get-SupportPath *files*)) (setq coggpaths Y:\\Library\\CAD Support Files\\Fonts; ) ; Plot Log File Path (vla-put-PlotLogFilePath *files* "C:\\Autocad Autosaves") ; Log File Path (vla-put-LogFilePath *files* "C:\\Autocad Autosaves") ; end use of *files* (vlax-release-object *files*) ; exit quitely (princ "All Done")