此函数可以设置天正对象的颜色为索引色
用法:
 - (if (setq obj (vlax-ename->vla-object (car (nentsel))))
- (K:SetTrueColorByACI obj 0);0~256
- )
 - ;通过ColorIndex属性设置ACI颜色@Kucha
- (defun K:SetTrueColorByACI (obj aci / RGBCol)
- (setq RGBCol (vla-get-TrueColor obj))
- (vlax-put-property RGBCol 'ColorIndex aci)
- (vla-put-TrueColor obj RGBCol)
- )
|