乐筑天下

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

[编程交流] 自定义支持文件路径

[复制链接]

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 19:53:46 | 显示全部楼层 |阅读模式
你好
 
我正在使用Civil 3d 2015,目前正在为我的公司创建一个新模板等。我有一个新的专用服务器,用于所有cad文件和支持文件。
 
我需要让Everyons机器在相同的文件系统上运行所有支持文件。我知道这可以通过运行自定义配置文件arg来实现,但这似乎有太多的问题,因为它在导出时会丢失支持文件路径等。
 
我想知道在启动cad时,是否有任何lisp文件只更改选项中的文件系统。或者以任何其他方式为多个用户执行此操作。
 
希望有人能帮忙
 
谢谢
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 20:14:07 | 显示全部楼层
您可以使用这些函数为用户操作支持文件搜索路径。
 
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 20:21:02 | 显示全部楼层
像这样的
 
  1. ; resets the paths usefull for update versions of Autocad
  2. ; by A 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")
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 20:30:23 | 显示全部楼层
谢谢,伙计们,看起来这些应该管用!我还没有机会测试它们。我一定会给一些反馈,只要我有机会。我必须在两台机器之间设置这些,并对它们进行彻底测试。希望这能奏效。希望Autodesk能够记住为多个用户排序这样的内容。。。?
 
但是好的,让我看看。谢谢大家
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 20:42:21 | 显示全部楼层
这仅仅是一种体验,现在使用ARG和定制的桌面图标只需花费我们很少的时间,这是关于了解如何操作和步骤顺序的。关于设置多台电脑的话题已经在这里讨论过很多次了,我知道我已经发布了一些消除痛苦的建议。
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 20:57:56 | 显示全部楼层
运行arg的桌面图标很好,这一切都是关于在没有用户自己输入的情况下进行更新。考虑到不是每个人都与cad方面保持联系,这将是一场混乱。我已经做好了一切准备,让每个人的生活都变得更轻松,但当arg更新时,仍然需要调整你的十字准线大小,这会引起骚动
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-2 20:57 , Processed in 1.315762 second(s), 75 queries .

© 2020-2025 乐筑天下

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