|
发表于 2004-4-19 07:09:00
|
显示全部楼层
In help file:
Adds commands to the AutoCAD built-in command set (vlax-add-cmd global-name func-sym [local-name cmd-flags]) With vlax-add-cmd you can define a function as an AutoCAD command, without using the c: prefix in the function name. You can also define a transparent AutoLISP command, which is not possible with a c: function. Warning! You cannot use the c ommand function call in a transparently defined vlax-add-cmd function. Doing so can cause AutoCAD to close unexpectedly.
You can define ZE in this way:
(defun ze() (vla-ZoomExtents (vlax-get-acad-object))) |
|