命令: (setq dbx (Vlax-Get-Or-Create-Object (strcat "ObjectDBX.AxDbDocument."
(substr (getvar "acadver") 1 2))))
#<VLA-OBJECT IAxDbDocument 1f3301e8>
命令: 'VLIDE
命令:
命令: *取消*
命令: *取消*
命令: (vla-open dbx (SETQ PATH "E:\\Work.SYC\\B5\B5\\(X)CELL
CF\\X02ELL0400.dwg"))
Automation 错误。未提供说明。
-
- (defun c:xrefCheck()
- (VL-LOAD-COM)
- (setq dbx (Vlax-Get-Or-Create-Object (strcat "ObjectDBX.AxDbDocument." (substr (getvar "acadver") 1 2))))
- (vla-open dbx (SETQ PATH "E:\\Work.SYC\\B5\B5\\(X)CELL CF\\X02ELL0400.dwg"))
- ;(setq Model (Vlax-Get dbx 'ModelSpace))
- (setq xrefList (listxrefs));listxrefs为自定义函数,目的是返回vla-open 的DWG文件所有外部引用列表
- (print xrefList)
- (vlax-release-object dbx)
- (princ)
- )
|