anolan303 发表于 2022-7-6 23:37:23

更改默认支持文件夹

大家早上好,
 
首先,我是AutoCad新手。我正在尝试设置个人配置文件,目前我们使用自定义。lsp文件(我们会自动启动)引用中的自定义文件“C:\Users\user.domain\AppData\Roaming\Autodesk\AutoCAD 2014\R19.1\chs\Support文件夹。当我将此文件夹替换为自定义支持文件夹时,应用程序会添加自定义工具栏等。问题是,我不希望每次新用户使用AutoCAD时都替换此文件夹。我希望将此文件夹路径替换为与本地windows配置文件无关的路径,即:”C: \ AutoDesk\u文件\支持“”。
 
我在Options中创建了一个新的配置文件,并将“Files”选项“Support Files Search Path”以及“Trusted Path”设置为“C:\AutoDesk\U Files\Support”。在此文件夹中,我放置了自定义支持文件和默认文件。当我启动AutoCad时,我看不到我的习惯,“受信任的路径”仍然不受信任。我已启用“SECURELOAD=0”。
 
我肯定我错过了一些关于让这些配置文件看到我的“支持”文件夹,任何帮助将不胜感激。
 
安东尼

BIGAL 发表于 2022-7-7 01:25:41

您可以通过lisp和其他许多东西更改支持路径。
 

; resets the paths usefull for update versions of Autocad
; by Alan H 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:\\AcadTEMP")

(setq *files*(vla-get-files(vla-get-preferences (vlax-get-Acad-object))))

; savepath
;(vla-get-AutoSavepath *files*)
(vla-put-AutoSavepath *files* "C:\\AcadTemp")

; custom icons
;(vla-get-CustomIconPath *files*))
(vla-put-CustomIconPath *files* "P:\\Autodesk\\ICONS")

; custom menu
;(vla-get-Menufile *files*))
;(vla-put-Menufile*files* "C:\\Users\\2013xxxx")

; printers config
;(vla-get-PrinterConfigPath *files*)
(vla-put-PrinterConfigPath *files* "P:\\AutoDESK\\Plotting\\Plot Styles 2011")

; printers style sheet
;(vla-get-PrinterStyleSheetPath *files*)
(vla-put-PrinterStyleSheetPath *files* "P:\\AutoDESK\\Plotting\\Plot Styles")

; printer drv's
;(vla-get-PrinterDescPath *files*)
(vla-put-PrinterDescPath *files* "P:\\AutoDESK\\Plotting\\Drv")

; print spooler
;(vla-get-PrintSpoolerPath *files*)
(vla-put-PrintSpoolerPath *files* "C:\\AcadTemp\\")

; templatepath
;(vla-get-TemplateDwgPath *files*)
(vla-put-TemplateDwgPath *files* "P:\\Autodesk\\c3d Templates")

; template location
;(vla-get-QnewTemplateFile *files*)
(vla-put-QnewTemplateFile *files* "P:\\Autodesk\\c3d Templates\\xxxx.dwt")

;make new support paths exist + new
(setq paths (vla-get-SupportPath *files*))

(setq xxxxpaths
"P:\\autodesk\\supportfiles;
P:\\autodesk\\lisp;
P:\\autodesk\\fonts;
P:\\autodesk\\hfs fonts;"
)

(setq newpath (strcat xxxxpaths paths))
(vla-put-SupportPath *files* newpath)

; Tempdirectory
;(vla-get-TempFilePath *files*))
(vla-put-TempFilePath *files* "C:\\AcadTemp\\")

;   PlotLogFilePath = "C:\\Documents and Settings\\ah02490.xxxx-AD\\local
settings\\application data\\autodesk\\c3d 2011\\enu\\"
(vla-put-PlotLogFilePath *files* "C:\\AcadTemp\\")

;   LogFilePath = "C:\\Documents and Settings\\ah02490.xxxx-AD\\local
settings\\application data\\autodesk\\c3d 2011\\enu\\"
(vla-put-LogFilePath *files* "C:\\AcadTemp\\")


; xref temp path
;(vla-get-TempXrefPath *files*))
(vla-put-TempXrefPath *files* "C:\\AcadTemp\\")

; end use of *files*
(vlax-release-object *files*)

; exit quitely
(princ "All Done")
页: [1]
查看完整版本: 更改默认支持文件夹