网络CUI
我在CUI中制作了一个菜单,我需要办公室里的每个人都可以访问。我将CUI文件以及它调用和需要的所有命令和图标图像放置在每个人都可以访问的网络硬盘上。然后,我将此文件夹放置在网络中所有计算机的支持文件搜索路径中,并通过自定义用户界面加载CUI。当它在我的电脑和网络上的另外两台电脑上测试时,我让它工作得非常好。我让我们的网络管理员对其应用只读权限,因此我是网络上唯一可以更改文件中的文件和子文件夹的计算机。现在没有人,包括我自己可以使用它。CUI加载良好,但可以读取(只读),并且菜单不会显示。我可以不给这个文件只读权限吗,或者这里还有其他事情吗? 我有一些菜单,我想为我们加载。这个崔是只读的,可在网络上使用。我称之为我们的末日。lsp:
(defun CESMenu (/)
(and
(not (menugroup "CES-Custom"))
(findfile "S:\\CADD Standards\\CES Custom CUI\\CES-Custom.cui")
(command "_.menuload" "S:\\CADD Standards\\CES Custom CUI\\CES-Custom.cui")
) ;_ and
(and
(menugroup "CES-Custom")
(menucmd "p30=+CES-Custom.POP1")
) ;_ and
) ;_ defun
我会试试的。 问你几个问题:
1) 在调用路径时,是否必须有两条斜线?" \\ "
2) 我应该将menugroup和menucmd更改为什么?我的文件是崔。崔,那么我会把menugroup变成“PGE_cui”吗?但是我要为menucmd放什么,因为我没有任何标记为PGE_CUI的文件。POP1在文件夹中的任何位置? 1) 双\\或单/。
2) 将其更改为menugroup的任何名称。将其加载到计算机上时,在CUI编辑器中,会显示任何名称。
3) 同上,将其设为您的menugroup名称。它不是一个单独的文件,POP1是菜单下拉菜单(它们不会自动加载)。
这就是我的阿卡多克。lsp文件:
(defun CESMenu (/)
(and
(not (menugroup "CES-Custom"))
(findfile "W:\\AutoCAD\\PGE_CUI\\PGE_CUI.cui")
(command "_.menuload" "W:\\AutoCAD\\PGE_CUI\\PGE_CUI.cui")
) ;_ and
(and
(menugroup "PGE_CUI")
(menucmd "p30=+PGE_CUI.POP1")
) ;_ and
) ;_ defun
(command "snap" "1/32")
(command "-plotstamp" "on" "")
我在命令行上看到:
Customization file loaded successfully. Customization Group: ACAD
Customization file loaded successfully. Customization Group: EXPRESS
Customization file loaded successfully. Customization Group: RELAY
Regenerating model.
AutoCAD Express Tools Copyright © 2002-2004 Autodesk, Inc.
AutoCAD Bonus Layer Tools Loaded.
AutoCAD menu utilities loaded.snap
Specify snap spacing or <0.5000>: 1/32 -plotstamp
Enter an option [On/OFF/Fields/User Fields/Log file/LOCation/Text
Properties/UNits] : on Enter an option [On/OFF/Fields/User Fields/Log
file/LOCation/Text Properties/UNits] :
No unreferenced blocks found.
No unreferenced blocks found.
No unreferenced blocks found.
No unreferenced blocks found.
No unreferenced blocks found.
Enter name of customization file to load:
Command: *Cancel*
Command: COMMANDLINE
CUI未加载。我好像错过了什么。难道这条路被叫错了吗?CUI的实际路径为:
W: \ AutoCAD\PGE\u CUI\PGE\u CUI。崔 更改为:
(defun PGEMenu (/)
(and
(not (menugroup "PGE_CUI"))
(findfile "W:\\AutoCAD\\PGE_CUI\\PGE_CUI.cui")
(command "_.menuload" "W:\\AutoCAD\\PGE_CUI\\PGE_CUI.cui")
) ;_ and
(and
(menugroup "PGE_CUI")
(menucmd "p30=+PGE_CUI.POP1")
) ;_ and
) ;_ defun
(PGEMenu)
您还必须调用命令(最后一行为红色)。 废话。。。当我看的时候,我完全忽略了这一点。谢谢这似乎效果很好。 很高兴你能正常工作。如果你需要任何进一步的帮助,请尽管问。 没问题。。。。非常感谢!
页:
[1]
2