<?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: Adding Request to script in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25170#M34142</link>
    <description>&lt;BLOCKQUOTE&gt;Fred wrote:&lt;BR /&gt;Yes I have tried this: &lt;BR /&gt;
 &lt;BR /&gt;
Master script: &lt;BR /&gt;
&lt;FONT color="#0051ff"&gt;n=REQUEST ("Zone_relations", "", category_name, code, name, number ,category_name2, &lt;BR /&gt;
code2, name2, number2)&lt;/FONT&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Parameter Sript: &lt;BR /&gt;
&lt;FONT color="#0051ff"&gt;PARAMETERS number=number &lt;/FONT&gt;
&lt;/BLOCKQUOTE&gt;

Wouldn't it work to use:&lt;BR /&gt;

&lt;PRE&gt;PARAMETERS MY_room_number = number&lt;/PRE&gt;

Where "MY_room_number" is a named parameter in the list?</description>
    <pubDate>Sun, 09 Jul 2006 14:51:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-07-09T14:51:12Z</dc:date>
    <item>
      <title>Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25164#M34136</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I am trying to add a request string to a library part. I have the correct request:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#0012ff"&gt;n=REQUEST ("Zone_relations", "", category_name, code, name, number ,category_name2,&lt;BR /&gt;
code2, name2, number2)&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 0, 0, number&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
but do not know the code to make it a string/parameter within the part.&lt;BR /&gt;
&lt;BR /&gt;
New to GDL and hope someone can help??&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Jul 2006 02:51:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25164#M34136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-07-07T02:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25165#M34137</link>
      <description>Fred,&lt;BR /&gt;
&lt;BR /&gt;
try to put this in the parameter script&lt;BR /&gt;
&lt;BR /&gt;
n=REQUEST ("Zone_relations", "", category_name, code, name, number ,category_name2, code2, name2, number2)  &lt;BR /&gt;
&lt;BR /&gt;
PARAMETERS name=name&lt;BR /&gt;
&lt;BR /&gt;
I am assuming that you have created the parameter 'name' in the parameter list...</description>
      <pubDate>Fri, 07 Jul 2006 03:52:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25165#M34137</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2006-07-07T03:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25166#M34138</link>
      <description>Robert, &lt;BR /&gt;
 &lt;BR /&gt;
Thanks for your reply. &lt;BR /&gt;
 &lt;BR /&gt;
Yes I have tried this: &lt;BR /&gt;
 &lt;BR /&gt;
Master script: &lt;BR /&gt;
&lt;FONT color="#0051ff"&gt;n=REQUEST ("Zone_relations", "", category_name, code, name, number ,category_name2, &lt;BR /&gt;
code2, name2, number2)&lt;/FONT&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Parameter Sript: &lt;BR /&gt;
&lt;FONT color="#0051ff"&gt;PARAMETERS number=number &lt;BR /&gt;
 &lt;BR /&gt;
PARAMETERS name=name&lt;/FONT&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Parameters: &lt;BR /&gt;
&lt;FONT color="#0051ff"&gt;Variables name + number (type - ABC)&lt;/FONT&gt; &lt;BR /&gt;
 &lt;BR /&gt;
No joy - I am trying to extract a room number from a zone that the &lt;BR /&gt;
object is placed in for room data sheets. &lt;BR /&gt;
 &lt;BR /&gt;
Have I got the sequence wrong?</description>
      <pubDate>Fri, 07 Jul 2006 07:08:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25166#M34138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-07-07T07:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25167#M34139</link>
      <description>This is &lt;B&gt;again&lt;/B&gt; the problem that some REQUESTs do not return a valid value in the moment PARAMETERS works proper. Other way round PARAMETERS does not any affect to the denoted parameter, when the REQUEST offers the searched values.&lt;BR /&gt;
&lt;BR /&gt;
One of these cases is the zone-relation request. Sorry. No hope to transfer the result to a parameter by parameters. Use in 2D-script, but not in parameter script.&lt;BR /&gt;
&lt;BR /&gt;
You are the third (I know from) in the last half year, who tried this. No chance IMHO.</description>
      <pubDate>Fri, 07 Jul 2006 07:40:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25167#M34139</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-07-07T07:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25168#M34140</link>
      <description>&lt;BLOCKQUOTE&gt;F. wrote:&lt;BR /&gt;You are the third (I know from) in the last half year, who tried this. No chance IMHO.&lt;/BLOCKQUOTE&gt;

Fourth. Very frustrating.</description>
      <pubDate>Fri, 07 Jul 2006 12:00:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25168#M34140</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2006-07-07T12:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25169#M34141</link>
      <description>Thank you all. Will revise my approach to this problem. Thanks for stopping me go down the wrong road.&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Sun, 09 Jul 2006 06:44:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25169#M34141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-07-09T06:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25170#M34142</link>
      <description>&lt;BLOCKQUOTE&gt;Fred wrote:&lt;BR /&gt;Yes I have tried this: &lt;BR /&gt;
 &lt;BR /&gt;
Master script: &lt;BR /&gt;
&lt;FONT color="#0051ff"&gt;n=REQUEST ("Zone_relations", "", category_name, code, name, number ,category_name2, &lt;BR /&gt;
code2, name2, number2)&lt;/FONT&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Parameter Sript: &lt;BR /&gt;
&lt;FONT color="#0051ff"&gt;PARAMETERS number=number &lt;/FONT&gt;
&lt;/BLOCKQUOTE&gt;

Wouldn't it work to use:&lt;BR /&gt;

&lt;PRE&gt;PARAMETERS MY_room_number = number&lt;/PRE&gt;

Where "MY_room_number" is a named parameter in the list?</description>
      <pubDate>Sun, 09 Jul 2006 14:51:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25170#M34142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-07-09T14:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25171#M34143</link>
      <description>No, it wouldn't, because number is "" in any moment PARAMETERS works.&lt;BR /&gt;
&lt;BR /&gt;
You are right, to write&lt;BR /&gt;
&lt;BR /&gt;
if not(number="") then PARAMETERS number=number&lt;BR /&gt;
&lt;BR /&gt;
would be better, but this does not work too. See above.</description>
      <pubDate>Sun, 09 Jul 2006 15:02:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25171#M34143</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-07-09T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25172#M34144</link>
      <description>I just tried putting the whole bit into the master script to see if the execution order would be different. Strangely the part works outside of a zone, but once moved inside the symbol vanishes leaving only the big dot. This is despite having a Rect2 in there to make sure it wasn't just the text disappearing.</description>
      <pubDate>Sun, 09 Jul 2006 15:37:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25172#M34144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-07-09T15:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25173#M34145</link>
      <description>I should have known, that you would try. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt; Maybe the request changes the variable from string to numeric. wrap a if vartype(number)=2 then ... around it.&lt;BR /&gt;
&lt;BR /&gt;
See the following threads:&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=8856&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=8856&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=8856&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... e&amp;amp;&amp;amp;start=0"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=8856&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=10858&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=10858&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=10858&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... e&amp;amp;&amp;amp;start=0"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=10858&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=write+file&amp;amp;&amp;amp;start=0&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
The last one shows how to write out the values into a text file to see the context, script type and value in each running.</description>
      <pubDate>Sun, 09 Jul 2006 23:47:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25173#M34145</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-07-09T23:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Request to script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25174#M34146</link>
      <description>&lt;BLOCKQUOTE&gt;F. wrote:&lt;BR /&gt;I should have known, that you would try. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt; Maybe the request changes the variable from string to numeric. wrap a if vartype(number)=2 then ... around it.
&lt;/BLOCKQUOTE&gt;

That is exactly what happens. Normally when window or door is placed to wall between two zones, the values the REQUEST ("Zone_relations" ...) returns are strings. But when there is no zone it returns 0 which is a number. So if you make IF-statement to that value, each time when the value isn't proper it "crashes" (only the black dot appears)&lt;BR /&gt;
So first I must be sure that the value is proper type.&lt;BR /&gt;
&lt;BR /&gt;
This request function really sucks btw...</description>
      <pubDate>Wed, 04 Jul 2007 13:20:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-Request-to-script/m-p/25174#M34146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-04T13:20:35Z</dc:date>
    </item>
  </channel>
</rss>

