Product: | MicroStation | ||
Version: | V8, XM, V8i, CE | ||
Environment: | N\A | ||
Area: | Base Geometry | ||
Subarea: | N\A |
How can the Active Color be defined as RGB colors using a keyin.
To set the active color through a keyin you just use this string: ACTIVE COLOR RGB:>red,green,blue<
Like: ACTIVE COLOR RGB:150,200,250 … also the old-school keyin works: co=RGB:150,200,250
MicroStation VBA you can get strange results Recording color settings in the VBA macro-recorder (Utilities>Macro>Projectmanager…) produces results that may not work as desired.. Replacing the recorded string by
CadInputQueue.SendCommand "co=RGB:150,200,250"
you get a correct RGB setting.
BTW. You also can use the colors from a color book. e.g. ACTIVE COLOR RAL CLASSIC 840-HR:1006
(it may be the easiest way find out the key-in to apply a value to an element and then obtain it from the element info)
Original Author: | Gerd Eisenacher |