Riaan007 发表于 2022-7-5 19:53:46

自定义支持文件路径

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

Lee Mac 发表于 2022-7-5 20:14:07

您可以使用这些函数为用户操作支持文件搜索路径。
 

BIGAL 发表于 2022-7-5 20:21:02

像这样的
 

; resets the paths usefull for update versions of Autocad
; by A 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")

Riaan007 发表于 2022-7-5 20:30:23

谢谢,伙计们,看起来这些应该管用!我还没有机会测试它们。我一定会给一些反馈,只要我有机会。我必须在两台机器之间设置这些,并对它们进行彻底测试。希望这能奏效。希望Autodesk能够记住为多个用户排序这样的内容。。。?
 
但是好的,让我看看。谢谢大家

BIGAL 发表于 2022-7-5 20:42:21

这仅仅是一种体验,现在使用ARG和定制的桌面图标只需花费我们很少的时间,这是关于了解如何操作和步骤顺序的。关于设置多台电脑的话题已经在这里讨论过很多次了,我知道我已经发布了一些消除痛苦的建议。

Riaan007 发表于 2022-7-5 20:57:56

运行arg的桌面图标很好,这一切都是关于在没有用户自己输入的情况下进行更新。考虑到不是每个人都与cad方面保持联系,这将是一场混乱。我已经做好了一切准备,让每个人的生活都变得更轻松,但当arg更新时,仍然需要调整你的十字准线大小,这会引起骚动
页: [1]
查看完整版本: 自定义支持文件路径