如果想完善点的,那就读取Excel内容
- ;加载EXCEL类型库
- (setq XLobj (vlax-get-or-create-object "Excel.Application"))
- (setq Epath (vlax-get-property XLobj 'Path))
- (cond
- ((setq exlib (findfile (strcat Epath "\\EXCEL.exe"))))
- (T (alert "Excel程序未安装!") (quit))
- )
- (if (null MX-acos) ;判断Excel资源库是否已被加载
- (vlax-import-type-library :tlb-filename exlib :methods-prefix "MX-" :properties-prefix "MX-" :constants-prefix "MX-")
- )
这个一两句也讲不清楚,论坛里去找找,很多 |