 - (defun Put-TrueColor (s1 rgb / o tc)
- "Put-TrueColor 实体赋值RGB颜色 (Put-TrueColor s1 rgb)"
- (if s1
- (progn
- (setq o (vlax-ename->vla-object s1)
- tc (vlax-get-property o 'TrueColor)
- )
- (vla-SetRGB tc (car rgb) (cadr rgb) (caddr rgb))
- (vla-put-trueColor o tc)
- s1
- )
- )
- )
|