<?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: Send request result to parameter in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368194#M677</link>
    <description>&lt;P&gt;I replicated Your examplle but its not working (AC26) although text2 (on a right) is showing retrieved value. Can You attach Your object?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="req.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33602i7F2991B10F08D492/image-size/large?v=v2&amp;amp;px=999" role="button" title="req.png" alt="req.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 07:22:25 GMT</pubDate>
    <dc:creator>greg_lupo</dc:creator>
    <dc:date>2023-01-20T07:22:25Z</dc:date>
    <item>
      <title>Send request result to parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368180#M675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Thermal_conductivity			= 0 
Density							= 0 
Heat_capacity					= 0 
Embodied_energy					= 0 
Embodied_carbon					= 0 

s 	=	REQUEST{2} ("Building_Material_info", 1, 'gs_bmat_physical_properties', Thermal_conductivity,Density,Heat_capacity,Embodied_energy,Embodied_carbon)

param_Thermal_conductivity = Thermal_conductivity
				 
parameters param_Thermal_conductivity = param_Thermal_conductivity
&lt;/LI-CODE&gt;&lt;P&gt;I would like to save result (Thermal_conductivity) of request command into parameter (param_Thermal_conductivity) but it sends zero. However Thermal_conductivity has a value that can be displayed ie in text2.&lt;/P&gt;&lt;P&gt;Is it possible to do so?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 06:14:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368180#M675</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2023-01-20T06:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Send request result to parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368183#M676</link>
      <description>&lt;P&gt;Yes. I am assuming that your code is in the Parameter Script? I have used the below in one object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Master&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;n2 = REQUEST ("Profile_default_boundingbox", myProfileIdx, _xMin, _yMin, _xMax, _yMax)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Parameter&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PARAMETERS ProWidth = abs(_xMax - _xMin)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lingwisyer_0-1674196747887.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33594iC236E912FBEDFE7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lingwisyer_0-1674196747887.png" alt="Lingwisyer_0-1674196747887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lingwisyer_1-1674196762269.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33595i977BB480FFD34DE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lingwisyer_1-1674196762269.png" alt="Lingwisyer_1-1674196762269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 06:39:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368183#M676</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-01-20T06:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Send request result to parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368194#M677</link>
      <description>&lt;P&gt;I replicated Your examplle but its not working (AC26) although text2 (on a right) is showing retrieved value. Can You attach Your object?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="req.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33602i7F2991B10F08D492/image-size/large?v=v2&amp;amp;px=999" role="button" title="req.png" alt="req.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 07:22:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368194#M677</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2023-01-20T07:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Send request result to parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368211#M678</link>
      <description>&lt;P&gt;Thanks For example.&lt;BR /&gt;I analised it and figureout that Your object doesnt pass value to parameter neither &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What You showed in previuos post was value displayed in&amp;nbsp; UI. and in UI script you use again request&amp;nbsp; command just to displlay value in UI. but when You look into parameters ProWidth parameter (keep this example) is 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It pass a value only when profile is square/circle and desnt require request command&lt;/P&gt;&lt;P&gt;(I exposed ProWidth parameter that was named 'Width')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="square.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33603iC87CF41AD6CE3692/image-size/medium?v=v2&amp;amp;px=400" role="button" title="square.png" alt="square.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; but when compllex profile is used it passes 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="compllex.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33604iEC6E808AC74F3218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="compllex.png" alt="compllex.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 08:57:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368211#M678</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2023-01-20T08:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Send request result to parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368220#M679</link>
      <description>&lt;P&gt;Oh... I never noticed as I used the requested values to get a consistant profile position, display the values in the UI then forgot about it. Bit odd that it does not seem to work as using the requested values seems to works fine in every other situation...&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;EM&gt;Expression returns 0 and contains dummy return values (emtpy string or 0) if used in parameter script, causing additional warning.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both our requests have that note under them... wonder what the issue is...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 09:24:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368220#M679</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-01-20T09:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Send request result to parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368225#M680</link>
      <description>&lt;P&gt;I have been wrestling with these issues recently. GDL appears to be quite selective about allowing parameters to update, I assume fairly, that this is to avoid creation of circular value settings e.g. a parameter in object A is referenced in object B and object B references object A. It may be that a REQUEST value is also considered Global and therefore there should be no need to display it as a Parameter. So all objects have to REQUEST the value from source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need to see the values in the REQUEST then PRINT and TEXT2 can be useful temporary checks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 11:30:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Send-request-result-to-parameter/m-p/368225#M680</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-01-20T11:30:50Z</dc:date>
    </item>
  </channel>
</rss>

