<?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: Reset Parameter to default based on specific parameter change in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Reset-Parameter-to-default-based-on-specific-parameter-change/m-p/399503#M5656</link>
    <description>&lt;P&gt;The magic comes with the global called &lt;CODE&gt;GLOB_MODPAR_NAME&lt;/CODE&gt;. It gives you the name of the last user modified parameter.&lt;/P&gt;
&lt;P&gt;You could use it like this:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;if GLOB_MODPAR_NAME = "size" then
  if size = 12 then
    parameters A = 1.0
  endif
  if size = 20 then
    parameters A = 2.0
  endif
endif&lt;/LI-CODE&gt;
&lt;P&gt;This changes the dimensions ("A" being used as an example here) once. It is still fully stretchable and only changes again when you update the kWh unit size.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 09:26:13 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2023-09-25T09:26:13Z</dc:date>
    <item>
      <title>Reset Parameter to default based on specific parameter change</title>
      <link>https://community.graphisoft.com/t5/GDL/Reset-Parameter-to-default-based-on-specific-parameter-change/m-p/399482#M5654</link>
      <description>&lt;P&gt;I have an A/C object that I would like to have a flexible slab. when we change the size of the unit (say from 12kW to 20kW) I would like the slab to change to suit the default size and then be stretchable after that. my problem comes when you reset to a smaller size unit and it maintains the larger slab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My thoughts are to somehow get it to update to a default value when the kW parameter is changed and then allow a range of inputs. on the next kW change it would reset to the appropriate value for that size and then allow the stretch again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if i am maybe attacking this in the wrong way but I have googled my heart out and am at a wits end&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:49:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reset-Parameter-to-default-based-on-specific-parameter-change/m-p/399482#M5654</guid>
      <dc:creator>MichaelIserief</dc:creator>
      <dc:date>2024-09-26T11:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Parameter to default based on specific parameter change</title>
      <link>https://community.graphisoft.com/t5/GDL/Reset-Parameter-to-default-based-on-specific-parameter-change/m-p/399503#M5656</link>
      <description>&lt;P&gt;The magic comes with the global called &lt;CODE&gt;GLOB_MODPAR_NAME&lt;/CODE&gt;. It gives you the name of the last user modified parameter.&lt;/P&gt;
&lt;P&gt;You could use it like this:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;if GLOB_MODPAR_NAME = "size" then
  if size = 12 then
    parameters A = 1.0
  endif
  if size = 20 then
    parameters A = 2.0
  endif
endif&lt;/LI-CODE&gt;
&lt;P&gt;This changes the dimensions ("A" being used as an example here) once. It is still fully stretchable and only changes again when you update the kWh unit size.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 09:26:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reset-Parameter-to-default-based-on-specific-parameter-change/m-p/399503#M5656</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-09-25T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Parameter to default based on specific parameter change</title>
      <link>https://community.graphisoft.com/t5/GDL/Reset-Parameter-to-default-based-on-specific-parameter-change/m-p/399583#M5660</link>
      <description>&lt;P&gt;I have seen that command before but never quite fully understood it. Thanks for your help it worked a treat &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 22:37:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reset-Parameter-to-default-based-on-specific-parameter-change/m-p/399583#M5660</guid>
      <dc:creator>MichaelIserief</dc:creator>
      <dc:date>2023-09-25T22:37:57Z</dc:date>
    </item>
  </channel>
</rss>

