<?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: setting parameter via scripting in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120929#M24646</link>
    <description>thanks for all the replies&lt;BR /&gt;
&lt;BR /&gt;
i was using an IF statement but the parameter did not seem to get set when i asked it to&lt;BR /&gt;
&lt;BR /&gt;
i will work thru each suggestion and see if i can get it to work&lt;BR /&gt;
&lt;BR /&gt;
i will report back once done&lt;BR /&gt;
&lt;BR /&gt;
thanks again&lt;BR /&gt;
&lt;BR /&gt;
yukioMishima</description>
    <pubDate>Tue, 21 Apr 2009 08:05:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-21T08:05:31Z</dc:date>
    <item>
      <title>setting parameter via scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120925#M24642</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;howdy&lt;BR /&gt;
&lt;BR /&gt;
looking to do the following&lt;BR /&gt;
&lt;BR /&gt;
i have an if/ then statement and depending upon the result i would like to have gdl modify one of the parameters of the object&lt;BR /&gt;
&lt;BR /&gt;
the parameter in question can also be modified by hand&lt;BR /&gt;
&lt;BR /&gt;
in principle i want the object to check if the initial value of the parameter is greater than one number or less than another... and if so... then auto change the parameter to a specific value... if not.. then leave as is&lt;BR /&gt;
&lt;BR /&gt;
also&lt;BR /&gt;
&lt;BR /&gt;
if the value is modified by hand... for there to be an error check to ensure that the value is within range... if not... produce an error dialog&lt;BR /&gt;
&lt;BR /&gt;
make sense?&lt;BR /&gt;
&lt;BR /&gt;
any help would be greatly appreciated&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
&lt;BR /&gt;
yukioMishima&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Apr 2009 23:39:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120925#M24642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T23:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: setting parameter via scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120926#M24643</link>
      <description>i think i understand what you mean.&lt;BR /&gt;
try something like:&lt;BR /&gt;
&lt;BR /&gt;
IF paraName&amp;gt;10 THEN ......&lt;BR /&gt;
.....&lt;BR /&gt;
ELSE&lt;BR /&gt;
........&lt;BR /&gt;
ENDIF</description>
      <pubDate>Tue, 21 Apr 2009 01:16:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120926#M24643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T01:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: setting parameter via scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120927#M24644</link>
      <description>You have to place the commands in the PARAMETERS script, or in the MASTER script.&lt;BR /&gt;
&lt;BR /&gt;
You can use the VALUES command, with the CUSTOM keyword, to let the user input a desired value, and the RANGE limitation, that revert this value if is out of the allowed field. &lt;BR /&gt;
&lt;BR /&gt;
Or something like this:&lt;BR /&gt;
&lt;B&gt;IF param &amp;gt; 100 THEN &lt;BR /&gt;
PARAMETERS param = 100&lt;BR /&gt;
ELSE&lt;BR /&gt;
IF PARAMETERS &amp;lt; 10 THEN&lt;BR /&gt;
PARAMETERS param = 10&lt;BR /&gt;
ENDIF&lt;BR /&gt;
ENDIF&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
I suggest NOT using the alert window, or not abusing of it, as it is very annoyng for the user.</description>
      <pubDate>Tue, 21 Apr 2009 06:11:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120927#M24644</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2009-04-21T06:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: setting parameter via scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120928#M24645</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
This allows custom values within the range and any of the hard coded values.&lt;BR /&gt;
&lt;BR /&gt;
values "paraName" (-5), 0, 1, 2, a/2, range[-3,10]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Tue, 21 Apr 2009 06:55:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120928#M24645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T06:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: setting parameter via scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120929#M24646</link>
      <description>thanks for all the replies&lt;BR /&gt;
&lt;BR /&gt;
i was using an IF statement but the parameter did not seem to get set when i asked it to&lt;BR /&gt;
&lt;BR /&gt;
i will work thru each suggestion and see if i can get it to work&lt;BR /&gt;
&lt;BR /&gt;
i will report back once done&lt;BR /&gt;
&lt;BR /&gt;
thanks again&lt;BR /&gt;
&lt;BR /&gt;
yukioMishima</description>
      <pubDate>Tue, 21 Apr 2009 08:05:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120929#M24646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T08:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: setting parameter via scripting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120930#M24647</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Setting the parameter does not always update the value inside &lt;BR /&gt;
the code. Might be useful to code like;&lt;BR /&gt;
&lt;BR /&gt;
if paraName &amp;gt; 100 then&lt;BR /&gt;
  paraName = 100 !&amp;lt;--setting the value for the rest of the code&lt;BR /&gt;
  parameters paraName= paraName !&amp;lt;--setting the value for the user&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Tue, 21 Apr 2009 08:24:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/setting-parameter-via-scripting/m-p/120930#M24647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T08:24:08Z</dc:date>
    </item>
  </channel>
</rss>

