MicroStationCONNECT Edition 帮助

RGB 颜色

可以通过将任意颜色分配关键字设置为 RGB 数据类型,更改元素的颜色。RGB 数据类型指定为一个 0 到 255 范围内的整数三元组。整数分别代表红、绿、蓝的强度。可将白色指定为 (255,255,255),将黑色指定为 (0,0,0)。

语法:

color= (R,G,B)

boundary_color = (R,G,B)

fill_color = (R,G,B)

示例:

(255,0,0) red
(0,255,0) green
(0,0,255) blue
(255,255,0) yellow
(255,0,255) magenta
(0,255,255) cyan
(200,200,200) light gray
(100,100,100) dark gray

例如,要将参考文件中逻辑名称为“border”的元素颜色更改为浅灰色,可以编写以下设计脚本:

! 
! Change the color of all elements in a
! reference file with the logical name
! "border" to a light gray shade.
!
if (lname eq "border") then
	 color = (200,200,200)
endif