<?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 Parameters for Listing in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214486#M15884</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there any way to schedule roof pitch?  I have a parameter 'pitch' where you enter the value for 'x'...........x/12.  I am trying to schedule the value x/12.  &lt;BR /&gt;
&lt;BR /&gt;
pitch = 8&lt;BR /&gt;
PARAMETERS pitch_for_listing = pitch/12 ....results in .667&lt;BR /&gt;
PARAMETERS pitch_for_listing = '/12' .........results in  /12&lt;BR /&gt;
&lt;BR /&gt;
Is there any way to get the value of 'pitch' in front of /12?  8/12&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance&lt;BR /&gt;
&lt;BR /&gt;
David&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 21 Dec 2011 18:40:35 GMT</pubDate>
    <dc:creator>Dave Seabury</dc:creator>
    <dc:date>2011-12-21T18:40:35Z</dc:date>
    <item>
      <title>Parameters for Listing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214486#M15884</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there any way to schedule roof pitch?  I have a parameter 'pitch' where you enter the value for 'x'...........x/12.  I am trying to schedule the value x/12.  &lt;BR /&gt;
&lt;BR /&gt;
pitch = 8&lt;BR /&gt;
PARAMETERS pitch_for_listing = pitch/12 ....results in .667&lt;BR /&gt;
PARAMETERS pitch_for_listing = '/12' .........results in  /12&lt;BR /&gt;
&lt;BR /&gt;
Is there any way to get the value of 'pitch' in front of /12?  8/12&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance&lt;BR /&gt;
&lt;BR /&gt;
David&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Dec 2011 18:40:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214486#M15884</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2011-12-21T18:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for Listing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214487#M15885</link>
      <description>Dave:&lt;BR /&gt;
&lt;BR /&gt;
You need to combine the numerical value with the text, so your code should be something like:&lt;BR /&gt;
PARAMETERS pitch_for_listing = pitch + "/12"&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 22 Dec 2011 14:05:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214487#M15885</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2011-12-22T14:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for Listing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214488#M15886</link>
      <description>Thanks David&lt;BR /&gt;
&lt;BR /&gt;
I'll give it a try.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 22 Dec 2011 21:23:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214488#M15886</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2011-12-22T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for Listing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214489#M15887</link>
      <description>David&lt;BR /&gt;
&lt;BR /&gt;
I'm getting a "incompatible type expressions" error.  The value for the pitch has to be a dimension or a real number and the pitch_for_listing is a text value, so i think this is where the error is coming from.  I tried looking through the GDL help file to see if i could convert the pitch value to text but didn't come up with anything.  Do you know if this can be done?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your input&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Fri, 23 Dec 2011 16:13:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214489#M15887</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2011-12-23T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for Listing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214490#M15888</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Make the pitch_for_listing as a string type parameter.&lt;BR /&gt;
Then you could use for example;&lt;BR /&gt;
&lt;BR /&gt;
pitch_for_listing= str(pitch,1,0) + '/12'&lt;BR /&gt;
parameters pitch_for_listing= pitch_for_listing&lt;BR /&gt;
&lt;BR /&gt;
Hope this works / helps.&lt;BR /&gt;
&lt;BR /&gt;
Rehards, Juha</description>
      <pubDate>Fri, 23 Dec 2011 16:37:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214490#M15888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-23T16:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for Listing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214491#M15889</link>
      <description>Juha,&lt;BR /&gt;
&lt;BR /&gt;
That worked.........Many thanks&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Fri, 23 Dec 2011 17:08:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameters-for-Listing/m-p/214491#M15889</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2011-12-23T17:08:31Z</dc:date>
    </item>
  </channel>
</rss>

