乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 68|回复: 1

[综合讨论] 更改默认支持文件夹

[复制链接]

1

主题

1

帖子

0

银币

初来乍到

Rank: 1

铜币
5
发表于 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”。
 
我肯定我错过了一些关于让这些配置文件看到我的“支持”文件夹,任何帮助将不胜感激。
 
安东尼
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-7 01:25:41 | 显示全部楼层
您可以通过lisp和其他许多东西更改支持路径。
 
  1. ; resets the paths usefull for update versions of Autocad
  2. ; by Alan H 2011
  3. ; This sets a reference to the install path of your product
  4. ; the gets are their for info maybe other use
  5. ; use this to find other settings
  6. ;(vlax-dump-object (vla-get-files (vla-get-preferences (vlax-get-Acad-object))) T)
  7. (vl-load-com)
  8. ; make temp directory
  9. ;(vl-mkdir "c:\\AcadTEMP")
  10. (setq *files*  (vla-get-files  (vla-get-preferences (vlax-get-Acad-object))))
  11. ; savepath
  12. ;(vla-get-AutoSavepath *files*)
  13. (vla-put-AutoSavepath *files* "C:\\AcadTemp")
  14. ; custom icons
  15. ;(vla-get-CustomIconPath *files*))
  16. (vla-put-CustomIconPath *files* "P:\\Autodesk\\ICONS")
  17. ; custom menu
  18. ;(vla-get-Menufile *files*))
  19. ;(vla-put-Menufile  *files* "C:\\Users\\2013xxxx")
  20. ; printers config
  21. ;(vla-get-PrinterConfigPath *files*)
  22. (vla-put-PrinterConfigPath *files* "P:\\AutoDESK\\Plotting\\Plot Styles 2011")
  23. ; printers style sheet
  24. ;(vla-get-PrinterStyleSheetPath *files*)
  25. (vla-put-PrinterStyleSheetPath *files* "P:\\AutoDESK\\Plotting\\Plot Styles")
  26. ; printer drv's
  27. ;(vla-get-PrinterDescPath *files*)
  28. (vla-put-PrinterDescPath *files* "P:\\AutoDESK\\Plotting\\Drv")
  29. ; print spooler
  30. ;(vla-get-PrintSpoolerPath *files*)
  31. (vla-put-PrintSpoolerPath *files* "C:\\AcadTemp\")
  32. ; template  path
  33. ;(vla-get-TemplateDwgPath *files*)
  34. (vla-put-TemplateDwgPath *files* "P:\\Autodesk\\c3d Templates")
  35. ; template location
  36. ;(vla-get-QnewTemplateFile *files*)
  37. (vla-put-QnewTemplateFile *files* "P:\\Autodesk\\c3d Templates\\xxxx.dwt")
  38. ;make new support paths exist + new
  39. (setq paths (vla-get-SupportPath *files*))
  40. (setq xxxxpaths
  41. "P:\\autodesk\\supportfiles;
  42. P:\\autodesk\\lisp;
  43. P:\\autodesk\\fonts;
  44. P:\\autodesk\\hfs fonts;"
  45. )
  46. (setq newpath (strcat xxxxpaths paths))
  47. (vla-put-SupportPath *files* newpath)
  48. ; Tempdirectory
  49. ;(vla-get-TempFilePath *files*))
  50. (vla-put-TempFilePath *files* "C:\\AcadTemp\")
  51. ;   PlotLogFilePath = "C:\\Documents and Settings\\ah02490.xxxx-AD\\local
  52. settings\\application data\\autodesk\\c3d 2011\\enu\"
  53. (vla-put-PlotLogFilePath *files* "C:\\AcadTemp\")
  54. ;   LogFilePath = "C:\\Documents and Settings\\ah02490.xxxx-AD\\local
  55. settings\\application data\\autodesk\\c3d 2011\\enu\"
  56. (vla-put-LogFilePath *files* "C:\\AcadTemp\")
  57. ; xref temp path
  58. ;(vla-get-TempXrefPath *files*))
  59. (vla-put-TempXrefPath *files* "C:\\AcadTemp\")
  60. ; end use of *files*
  61. (vlax-release-object *files*)
  62. ; exit quitely
  63. (princ "All Done")
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 04:34 , Processed in 0.456375 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表