<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Does not pick up color keyword in pen table</title><link>https://communities.bentley.com/products/microstation/microstation_printing/f/printing-and-plotting-forum/180077/does-not-pick-up-color-keyword-in-pen-table</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Does not pick up color keyword in pen table</title><link>https://communities.bentley.com/thread/525603?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 17:21:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2d8c2516-ae82-431f-8897-b3bba45c707b</guid><dc:creator>Tom Felcone</dc:creator><description>&lt;p&gt;Sammy,&lt;/p&gt;
&lt;p&gt;Try this pentable, it has the black statement at the end&lt;/p&gt;
&lt;p&gt;if ((level == 63) and (style == 3) and (color == 8)) then !&amp;#39;Blue&amp;#39; &lt;br /&gt; color=(0,0,255)&lt;br /&gt; priority=0&lt;br /&gt;else if ((level == 63) and (style == 3) and (color == 6)) then !&amp;#39;Orange&amp;#39; &lt;br /&gt; color=(255,127,0)&lt;br /&gt; priority=0&lt;br /&gt;else if ((level == 63) and (style == 3) and (color == 96)) then !&amp;#39;Purple&amp;#39; &lt;br /&gt; color=(255,0,255)&lt;br /&gt; priority=0&lt;br /&gt;else if((level == 63) and (style == 2)and (color == 18)) then !&amp;#39;Green&amp;#39; &lt;br /&gt; color=(0,255,0)&lt;br /&gt; priority=0&lt;br /&gt;else if ((level == 63) and (style == 7) and (color == 3)) then !&amp;#39;Red&amp;#39; &lt;br /&gt; color=(255,0,0)&lt;br /&gt; priority=0&lt;br /&gt;else if (color .IN. 0-255) then&lt;br /&gt; color =(0,0,0)&lt;br /&gt; priority=2&lt;br /&gt;endif&lt;/p&gt;
&lt;p&gt;Tom F.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does not pick up color keyword in pen table</title><link>https://communities.bentley.com/thread/524906?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 22:09:14 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:454ccaad-a46c-4985-ac6f-a4e6355b6b9f</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;I may not be much more help - I always use the GUI to edit pen tables, so I&amp;#39;m not familiar with the actual table syntax.&lt;/p&gt;
&lt;p&gt;The goal is to process the special elements on level 63 first and pass them on so that they don&amp;#39;t get processed again, then set everything else to black.&lt;/p&gt;
&lt;p&gt;What version of the software are you running?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does not pick up color keyword in pen table</title><link>https://communities.bentley.com/thread/524899?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 21:16:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7e3e47d7-5403-4699-b1e0-1c1a84507c17</guid><dc:creator>Samy Slee</dc:creator><description>&lt;p&gt;Hi Mary, Thanks for the reply. I should make it more clear.&lt;/p&gt;
&lt;p&gt;what I want is to have everything in black EXCEPT level 63 in different color and style. &lt;/p&gt;
&lt;p&gt;above code will turn everything in black&amp;nbsp;INCLUDING level 63, I tried to put line &amp;quot;color = 224&amp;quot; at the beginning or at the end, both will turn everything in black. if I take out line &amp;quot;color=224&amp;quot; Level 63 will turn into the color I want but It also turn other level into different color other than black.&lt;/p&gt;
&lt;p&gt;hope this will make more sense.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does not pick up color keyword in pen table</title><link>https://communities.bentley.com/thread/524848?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 16:51:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e19b76f3-4143-4b1c-9768-45e2eebe01ee</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;Wait...if you take out the lines that make everything black, things aren&amp;#39;t black? That sounds like what is supposed to happen...&lt;/p&gt;
&lt;p&gt;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&amp;#39;ve said SHOULDN&amp;#39;T be black, print them in the correct colors, THEN make everything else black. Does that work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>