- (defun c:test( / )
- (setq ss (ssget))
- (setq ename (ssname ss 0))
- (setq vname (vlax-ename->vla-object ename))
- (setq datatype (vlax-make-safearray vlax-vbInteger '(0 . 3)))
- (vlax-safearray-fill datatype '(1001 1000 1001 1000))
- (setq data (vlax-make-safearray vlax-vbvariant '(0 . 3)))
- (vlax-safearray-fill data '("ITU_PLDY_TK" "ffs10" "ITU_PLDY_TM" "Drawing4__10"))
- ;(vlax-safearray-fill data '("ITU_PLDY_TM" "Drawing4__10" ))
- (vla-setxdata vname datatype data)
- (princ)
- )
以上代码设置扩展属性的值,,,有时候可以用,,但是有时就出错,,出错在vla-setxdata 提示:未找到注册的应用程序ID,不太懂变体,,,求大佬帮忙看下,,谢谢!!!
|