Does not pick up color keyword in pen table

very simple code all I need is to have everything in back except few line on level 63 when I create PDF with pen table.

after I run this code everything turn black, if I take out the first 2 lines everything on level 63 show up in the correct color but some of the line that are not on level 63 is not black.  looks like the color keyword doesn't work for some reasons. Please help.

Here is my code:
color = 224                                                          !everything 'Black'
priority=2

if ((level == 63) and (style == 3)) then                 !'Blue' 
   if (color == 8) then
      color=253
      priority=0
   endif
endif
if ((level == 63) and (style == 3)) then                 !'Orange' 
   if (color == 6) then
      color=249
      priority=0
   endif
endif
if ((level == 63) and (style == 3)) then                 !'Purple' 
   if (color == 96) then
      color=250
      priority=0
   endif
endif
if ((level == 63) and (style == 2)) then                 !'Green' 
   if (color == 18) then
      color=251
      priority=0
   endif
endif
if ((level == 63) and (style == 7)) then                 !'Red' 
   if (color == 3) then
      color=252
      priority=0
   endif
endif

Parents
  • Sammy,

    Try this pentable, it has the black statement at the end

    if ((level == 63) and (style == 3) and (color == 8)) then !'Blue'
    color=(0,0,255)
    priority=0
    else if ((level == 63) and (style == 3) and (color == 6)) then !'Orange'
    color=(255,127,0)
    priority=0
    else if ((level == 63) and (style == 3) and (color == 96)) then !'Purple'
    color=(255,0,255)
    priority=0
    else if((level == 63) and (style == 2)and (color == 18)) then !'Green'
    color=(0,255,0)
    priority=0
    else if ((level == 63) and (style == 7) and (color == 3)) then !'Red'
    color=(255,0,0)
    priority=0
    else if (color .IN. 0-255) then
    color =(0,0,0)
    priority=2
    endif

    Tom F.

Reply
  • Sammy,

    Try this pentable, it has the black statement at the end

    if ((level == 63) and (style == 3) and (color == 8)) then !'Blue'
    color=(0,0,255)
    priority=0
    else if ((level == 63) and (style == 3) and (color == 6)) then !'Orange'
    color=(255,127,0)
    priority=0
    else if ((level == 63) and (style == 3) and (color == 96)) then !'Purple'
    color=(255,0,255)
    priority=0
    else if((level == 63) and (style == 2)and (color == 18)) then !'Green'
    color=(0,255,0)
    priority=0
    else if ((level == 63) and (style == 7) and (color == 3)) then !'Red'
    color=(255,0,0)
    priority=0
    else if (color .IN. 0-255) then
    color =(0,0,0)
    priority=2
    endif

    Tom F.

Children
No Data