本帖最后由 e2002 于 2012-10-10 10:41 编辑
LISP 程序中使用command或者vl-cmdf 时,如果需要保持在各种语言版本中都能正常工作,应在命令输入内容前面加上 "_",
例如 : "_c" , "_cen" - Using the AutoLISP Language > Using AutoLISP to Communicate with AutoCAD > Accessing Commands and Services > Command Submission >
- Foreign Language Support
-
-
- If you develop AutoLISP programs that can be used with a foreign language version of AutoCAD, the standard AutoCAD commands and keywords are automatically translated if you precede each command or keyword with an underscore (_).
- (command "_line" pt1 pt2 pt3 "_c")
- If you are using the dot prefix (to avoid using redefined commands), you can place the dot and underscore in either order. Both "._line" and "_.line" are valid.
|