请问Lisp语言中(vl

(vl-load-com)是什么函数?

功能:将 Visual LISP 扩展功能加载到 AutoLISP
说明
1)函数加载 Visual LISP 提供的扩展 AutoLISP 函数。Visual LISP 扩展通过 AutoLISP 不仅实现对 ActiveX 和 AutoCAD 反应器的支持,同时还提供了 ActiveX 实用程序、数据转换函数、词典处理函数和曲线测量函数。
2)如果扩展已经加载,vl-load-com 不做任何工作。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-08-18
加载vlax 扩展函数(vl.arx)。默认情况下是没有加载的。

如果没有加载,就不能使用vl开头的函数。
第2个回答  2012-08-03
Before you can use ActiveX functions with AutoLISP, you need to load the supporting code that enables these functions. Issue the following function call to load ActiveX support.
ActiveX functionality is not automatically enabled when you start AutoCAD or VLISP, so your programs must ensure that ActiveX is loaded. The following function call accomplishes this:
(vl-load-com)
If ActiveX support is not yet available, executing vl-load-com initializes the AutoLISP ActiveX environment. If ActiveX is already loaded, vl-load-com does nothing.
在CAD LISP中使用操作ActiveX 对象的函数前,必须(vl-load-com)函数来取得对ActiveX 对象操作函数的支持(即加载ActiveX 对象库函数),否则无效。
相似回答