这将为您提供点编组的名称,最后几行是您需要的位。
- (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
- ((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
- (vlax-for j (vlax-get *AeccDoc* 'Pointgroups)
- (setq lst (cons (cons (vla-get-name j) j) lst))
- )
|