[color=GREEN];; Retrieve the current RGB values[/color]
([color=BLUE]setq[/color] lst ([color=BLUE]mapcar[/color] '[color=BLUE]vlax-get-property[/color] ([color=BLUE]list[/color] col col col) '(red green blue)))
[color=GREEN];; Change the color method to RGB[/color]
([color=BLUE]vla-put-colormethod[/color] col [color=BLUE]accolormethodbyrgb[/color])
[color=GREEN];; Configure the RGB values accordingly[/color]
([color=BLUE]apply[/color] '[color=BLUE]vla-setrgb[/color] ([color=BLUE]cons[/color] col lst))
[color=GREEN];; Apply the color to the layer[/color]
([color=BLUE]vla-put-truecolor[/color] obj col)
) [color=GREEN];; end progn[/color]
) [color=GREEN];; end if[/color]
) [color=GREEN];; end progn[/color]
) [color=GREEN];; end if[/color]
) [color=GREEN];; end vlax-for[/color]
[color=GREEN];; Close the open undo group[/color]
([color=BLUE]vla-endundomark[/color] doc)
[color=GREEN];; Suppress the value returned by the last evaluated expression[/color]
([color=BLUE]princ[/color])
) [color=GREEN];; end defun[/color]
[color=green];; Load the ActiveX component of Visual LISP and suppress the value returned on load[/color]