<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Define Pen Colour? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Pen-Colour/m-p/254174#M7052</link>
    <description>I don't think you can define a pen colour because there is a finite number of pens and these are defined in your pen sets (I may be wrong).&lt;BR /&gt;
Unlike materials and fills where you can have as many as you want.&lt;BR /&gt;
&lt;BR /&gt;
If you already have the red, green and yellow pens in your pen set then you can use them in your script by hard coding them and not allowing them as a parameter that the user can change.&lt;BR /&gt;
However changing pen sets may change those colours.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Tue, 10 Jan 2017 01:14:58 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2017-01-10T01:14:58Z</dc:date>
    <item>
      <title>Define Pen Colour?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Pen-Colour/m-p/254173#M7051</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
   does anyone know if there's a way of defining a pen colour in RGB with GDL?&lt;BR /&gt;
&lt;BR /&gt;
We need to make a 2d object with predefined background colours (red, yellow and green) so we don't want to give the user choice over which pen to use.&lt;BR /&gt;
&lt;BR /&gt;
Can it be defined in script? It seems odd that we can define Materials but not Pen colours (which are much simpler).&lt;BR /&gt;
&lt;BR /&gt;
It's not listed here, but there may be a workaround or something I'm missing?&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-8-attributes/inline-attribute-definition/" target="_blank"&gt;gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-8-attributes/inline-attribute-definition/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Jan 2017 16:11:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Pen-Colour/m-p/254173#M7051</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2017-01-09T16:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Define Pen Colour?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Pen-Colour/m-p/254174#M7052</link>
      <description>I don't think you can define a pen colour because there is a finite number of pens and these are defined in your pen sets (I may be wrong).&lt;BR /&gt;
Unlike materials and fills where you can have as many as you want.&lt;BR /&gt;
&lt;BR /&gt;
If you already have the red, green and yellow pens in your pen set then you can use them in your script by hard coding them and not allowing them as a parameter that the user can change.&lt;BR /&gt;
However changing pen sets may change those colours.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 10 Jan 2017 01:14:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Pen-Colour/m-p/254174#M7052</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-01-10T01:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Define Pen Colour?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Pen-Colour/m-p/254175#M7053</link>
      <description>Thanks, hard-coding the pen number is the solution I went with - we just have to hope the user doesn't change the pen set when using the object.&lt;BR /&gt;
&lt;BR /&gt;
It's surprising that the RGB of a poly2_b fill can't be defined in script though - I understand about a limited number of pen numbers, but the purpose bypasses the need to refer to a specific pen. I just want to lock the colour of a fill!</description>
      <pubDate>Tue, 10 Jan 2017 10:19:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Pen-Colour/m-p/254175#M7053</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2017-01-10T10:19:43Z</dc:date>
    </item>
  </channel>
</rss>

