Dscript or Pen text based file and specifying colors from a dgnlib colorbook.

I'm trying to create a text based dscript or pen table that allows me to specify colors that come from a dgnlib color book. I would even use the dialog based tbl file but it doesn't seem to be as flexible.

Thank you for any help. Also I don't mind reading if someone can point me in the right direction.

-Phillip Hess

  • Phil,

    A Design Script can be used, this was copied from the MicroStation Help:

    The printing system supports the following format for specifying a color string from one of the delivered color books: "<color book name>:<color name>".

    Examples:
    color = "RAL DESIGN:RAL 000 45 00"
    boundary_color = "NCS - Natural Color System(R)(C):NCS S 0300-N"
    fill_color = "PANTONE(R) pastel uncoated:PANTONE Green 0921 U"
    If you primarily use standard colors, the built-in color table may be adequate; otherwise, you can specify a color book name from any of the delivered color books (PANTONE, RAL CLASSIC, RAL DESIGN, or NCS - Natural Color System(R)(C)).
    For example, to change the color of elements in the master file to "black" and the color of elements in all reference files to a gray shade, you can write the following design script:
    !
    ! Change the color of all elements in the
    ! master file to black, and the reference
    ! files to a gray.
    !
    if (file eq 0) then
    color = "black"
    else
    color = "RAL DESIGN:RAL 000 45 00"
    endif