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 endifendifif ((level == 63) and (style == 3)) then !'Orange' if (color == 6) then color=249 priority=0 endifendifif ((level == 63) and (style == 3)) then !'Purple' if (color == 96) then color=250 priority=0 endifendifif ((level == 63) and (style == 2)) then !'Green' if (color == 18) then color=251 priority=0 endifendifif ((level == 63) and (style == 7)) then !'Red' if (color == 3) then color=252 priority=0 endifendif
Wait...if you take out the lines that make everything black, things aren't black? That sounds like what is supposed to happen...
What happens if you place the two lines that make everything black at the end of your table? That way, I think the table would sort out all the things that you've said SHOULDN'T be black, print them in the correct colors, THEN make everything else black. Does that work?
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
Hi Mary, Thanks for the reply. I should make it more clear.
what I want is to have everything in black EXCEPT level 63 in different color and style.
above code will turn everything in black INCLUDING level 63, I tried to put line "color = 224" at the beginning or at the end, both will turn everything in black. if I take out line "color=224" Level 63 will turn into the color I want but It also turn other level into different color other than black.
hope this will make more sense.
Thanks
I may not be much more help - I always use the GUI to edit pen tables, so I'm not familiar with the actual table syntax.
The goal is to process the special elements on level 63 first and pass them on so that they don't get processed again, then set everything else to black.
What version of the software are you running?