我现在有问题,我已经安装了CIV3D 2016,这个例程会出现错误,我知道appstr“13.0”可能是错误的数字,但我似乎在尝试其他数字之前出现了错误。有什么需要帮忙的吗?
- ;vercheck.lsp version check for *aecc objects
- ; By Alan H
- (defun ah:vercheck ( / vrsn appstr)
- (vl-load-com)
- (if ((lambda (vrsn)
- (cond
- ((vl-string-search "R17.2" vrsn) (setq appstr "6.0")) ;09
- ((vl-string-search "R18.0" vrsn) (setq appstr "7.0")) ;10
- ((vl-string-search "R18.1" vrsn) (setq appstr "8.0")) ;11
- ((vl-string-search "R18.2" vrsn) (setq appstr "9.0")) ;12 ?
- ((vl-string-search "R19.0" vrsn) (setq appstr "10.0")) ;13
- ((vl-string-search "R19.1" vrsn)(setq appstr "11.0"));;2014
- ((vl-string-search "R20.0" vrsn)(setq appstr "12.0"));;2015
- ((vl-string-search "R20.1" vrsn)(setq appstr "13.0"));;2016
- ((alert "This version of C3D not supported!"))
- )
- )
- (vlax-product-key)
- ) ; end if condition progn is true
- (progn
- (cond (*AeccDoc*)
- ((setq *AeccDoc*
- (vlax-get
- (cond (*AeccApp*)
- ((setq *AeccApp*
- (vla-getinterfaceobject
- (cond (*Acad*)
- ((setq *Acad* (vlax-get-acad-object)))
- )
- (strcat "AeccXUiLand.AeccApplication." appstr)
- )
- )
- )
- )
- 'ActiveDocument
- )
- )
- )
- ) ; end main cond
- ) ; end progn
- ) ; end if vsrn
- )
|