cad菜单定制
cad菜单定制
Let's add another pull-down menu of our favorite commands to the existing AutoCAD menu.
Select Menus from the CUI to display a list of the current pull-down menus. Right-click on any of the
menus, and select New to create a new pull-down. Enter "Favorites" as the title. This will place our
menu at the end of the list. Drag the new menu between Tools and Draw (figure 2). Now you're ready
to drag and drop your favorite commands into your new menu.
让我们把我们的喜爱的命令(命令收藏夹)的下拉菜单加入到现有的AutoCAD软件菜单
中。从CUI中选择菜单显示一列当前的下拉菜单。在任何菜单右击,选择new(新建)建立一新
下拉菜单。输入"Favorites"(收藏夹)作为标题。这会在列表的末端放置我们的菜单。拖该菜
单到Tools工具和Draw绘画之间(图2)
,现在你就可以拖放你喜爱的命令到你的菜单里了。
Figure 2. Creating a new pull-down menu in the CUI.
图形⒉在CUI建立一新下拉菜单。
Simply select your commands one by one from the list in the lower left corner. I've added Trim,
Copy, Move, Offset and Insert for my list (figure 3). Select the command and then drag and drop them
to the Favorites menu. You can key in the first letter of the command you want, and the CUI will jump
to the commands that begin with that letter. After adding them to your menu, feel free to move them
around to get them in the desired order. Select OK to save and exit the dialog box, and then take a look
at your masterpiece!
只须一个接一个从该列表的左下角选择你的命令然后拖放就可以了,我已经添加Trim,
Copy, Move, Offset和Insert到我的列表中(图3)
,选择该命令然后把拖放他们到收藏夹菜单中。
你可以键入你需要命令的第一字母,然后CUI会跳到那些由那字母开始的命令(译注:在中文
。在添加它们到你的菜单以后,就可以按照你要求的次序来移动它
cad2006中我发现不能这样)
们。选择OK保存和退出对话框、然后看看你的杰作!
You are currently editing the AutoCAD menu (ACAD.CUI). If you decide to upgrade to the
next release of AutoCAD, you'll find that the corresponding ACAD.CUI will override this one, and it
will be very difficult for you to migrate your precious customizing. For this reason, you might find it
better to create a partial menu. It's easy to insert a partial menu into this and subsequent releases of
AutoCAD. The Express Menu is an example of a partial menu -- it's simply added into the AutoCAD
menu environment. Let's look at the procedure for that (only slightly different and just as easy!).
你现在正在编辑的是AutoCAD菜单(acad.cui),如果你决定升级到下一个AutoCAD版本,
那么你将发现对应的acad.cui会替换现在这个cui,这将使得移植你最喜欢的定制变得非常困难。
为此你最好建立一局部的菜单。而将一局部的菜单插入到这个版本和以后版本的AutoCAD是很
容易的。Express 菜单就是一局部的菜单的例子,它只须添加到AutoCAD菜单环境里面。让我
们看看这个流程(仅仅稍有不同但也非常简单)
Partial Menus
From the upper left corner of the CUI, select Partial CUI Files. You'll find a partial menu called
Custom that Autodesk has earmarked for you to use for your own customization purposes. Select
Custom, and then follow very similar steps as before. Select Menu/ (right-click) / New/ Menu. Name
this one Favorites2 and add the commands just as before (figure 4).
局部菜单
从CUI的左上角选择局部的CUI文件。你将发现一个叫做Custom的局部菜单,这个是
Autodesk专门给你作定制用的。选择Custom,然后遵循如前所述的非常类似的步骤。选择菜单
/(右击)/新/菜单。把这个命名为favorites2并且如前面一样添加该命令(图4)
。
Figure 4. Creating a partial menu in the CUI.
图形⒋建立一局部的菜单在该CUI。
So Favorites2 should now be the last of the pull-down menus. We used to be able to
specifically control where the partial menus appeared within the pull-downs with the Menuload
command, but if that functionality still exists in AutoCAD 2006, I couldn't find it. It's not the end of
the world, but it would be nice if we could control where the partial menus landed. You can still
control them through AutoLISP for you LISPers out there.
那么favorites2现在是最后一个下拉菜单了。我们曾经能够通过Menuload命令来明确地控
制局部的菜单出现在下拉菜单的哪个部分,但是我却找不到这个功能了,虽然menuload还存在
于AutoCAD 2006里面的话。尽管还没到山穷水尽的地步,但是如果我们可以控制局部的菜单的
位置的话那该多好啊。当然你仍然可以通过autolisp来控制它们。
Just a quick look at the other tools in the customization section of the CUI (figure 5): you can
load a partial CUI file from disk by selecting the first tool. The second tool lets you save all of your
current customization files (can't make out what the difference is between this and Apply).
下面再稍微对CUI的定制部分瞄一眼(图5)
。你可以通过选择第一个图标工具来从一个
磁盘中载入一个局部的的CUI文件。而第二个图标工具让你保存所有你的当前的定制文件(还
弄不懂这和Apply的区别)。
The last tool displays the dialog box displayed in figure 6. The Display Filters dialog box
allows you to control just exactly what displays in the CUI dialog box (making it easier for you to
work on the different customization types). If you're only working on menu customization, you might
choose to turn off toolbars, mouse buttons, legacy, etc. This is very similar to the layer filter concept.
For those of you who are transferring your old menus into AutoCAD 2006, be sure to install
Service Pack 1. This will ensure your menus are imported into AutoCAD in the best possible shape.
This is just an introductory look at the new CUI. Next month we'll dive deeper and take a look
at some of the other sections.
Happy customizing and happy AutoCAD-ing!
图形⒍展示了图5中最后一个图标工具显示的对话框,显示过滤器的对话框允许你控制哪
些东西在CUI对话框中显示(这方便你对不同的定制类型进行操作)
,如果你是仅仅是对菜单定
制的话,那么你可以关掉工具栏、鼠标按纽、传统设置等等,这很类似于层过滤器概念的。
对那些传递你的老菜单到AutoCAD2006里的,切切要安置Service Pack 1.这会确保你的菜
单是完美的带进AutoCAD中。
这只是一个新CUI的简介。下月我们将钻研其他的部分。
幸福的定制和幸福地使用AutoCAD。
By qjchen 华南理工大学