<p>command: (vl-load-com)</p>
<p> </p>
<p>For 2000+</p> (defun test()
(vl-load-com)
(setq wmi (vlax-create-object "WbemScripting.SWbemLocator"))
(setq meth1 (vlax-invoke-method wmi 'ConnectServer nil nil nil nil nil nil nil nil ))
(setq meth2 (vlax-invoke-method meth1 'ExecQuery "Select * from Win32_Processor" nil nil nil ))
(vlax-for n meth2
(print (vlax-get n 'name))
(print (vlax-get n 'ProcessorId))
)
(princ)
) f224 发表于 2010-7-3 14:40
错误: no function definition: VLAX-CREATE-OBJECT
提示以上的错误,,是不是要先加载什么的,请 ...
(vl-load-com)这个是必须的,对于vlax开头的函数
页:
1
[2]