<?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: What is the first position in the STEP command? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584409#M6204</link>
    <description>&lt;P&gt;It's the start value.&lt;/P&gt;
&lt;P&gt;Let's imagine this: &lt;CODE&gt;values "foo",&amp;nbsp; sin(30), 4, range(5, 10], 12, range(,20] STEP 14.5, 0.5, custom&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="scriptG"&gt;All possible numbers for the parameter "foo" now are: &lt;BR /&gt;0.5, 4, 5 til 10 (without 5.00), 12, 14.5, 15, 15.5, 16, 16.5, 17, 17.5, 18, 18.5, 19, 19.5, 20&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 22:29:54 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2024-01-17T22:29:54Z</dc:date>
    <item>
      <title>What is the first position in the STEP command?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584367#M6203</link>
      <description>&lt;P&gt;I'm just testing basic stuff and I have an auto scripted slab and wanted to restrict the A-dimension between 1 and 2 meters and allow only even decimeters and the script below works great no matter what I write...0, 3, 3000... in the parameter script.&lt;/P&gt;
&lt;P&gt;values "A" range [1,2] step &lt;STRONG&gt;0&lt;/STRONG&gt;,0.1&lt;/P&gt;
&lt;P&gt;values "A" range [1,2] step &lt;STRONG&gt;3&lt;/STRONG&gt;,0.1&lt;/P&gt;
&lt;P&gt;etc... I get that the second position (in my case 0.1=1 decimeter) is the incremental move) but the first position beats me...&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:26:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584367#M6203</guid>
      <dc:creator>Mats Knutsson</dc:creator>
      <dc:date>2024-09-26T11:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the first position in the STEP command?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584409#M6204</link>
      <description>&lt;P&gt;It's the start value.&lt;/P&gt;
&lt;P&gt;Let's imagine this: &lt;CODE&gt;values "foo",&amp;nbsp; sin(30), 4, range(5, 10], 12, range(,20] STEP 14.5, 0.5, custom&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="scriptG"&gt;All possible numbers for the parameter "foo" now are: &lt;BR /&gt;0.5, 4, 5 til 10 (without 5.00), 12, 14.5, 15, 15.5, 16, 16.5, 17, 17.5, 18, 18.5, 19, 19.5, 20&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 22:29:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584409#M6204</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2024-01-17T22:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is the first position in the STEP command?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584429#M6205</link>
      <description>&lt;P&gt;the first position in the range/step command is the reference point for the range, the second is the stepping value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the reference point does not have to be within the range of the RANGE() values.&lt;/P&gt;
&lt;P&gt;your 0, 3, 3000 all happen to be multiples of the stepping value so you didn't see any change&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Round brackets "(" means don"t include this value in the range , i.e. &amp;lt; or &amp;gt;&lt;/P&gt;
&lt;P&gt;Square brackets "[" means include this value in the range , i.e. &amp;lt;=&amp;nbsp; or&amp;nbsp; =&amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fill fillAttribute_1
poly2_b{5}       5,      3,      1,      3, penAttribute_2, penAttribute_3,
                 0,      0,      1,      0,              0,              1,      0,
        0,       0,      1,
        A,       0,      1,
        A,       B,      1,
        0,       B,      1,
        0,       0,     -1
values "A" range[1,2] step 1,0.2
values "B" range[1,2] step 1,0.2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;note: my working units are mm for this example.&lt;/P&gt;
&lt;P&gt;Note: Archicads coding units are meters.&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="AllanP_2-1705549523121.png" style="width: 693px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52077i57E88115DB30E733/image-dimensions/693x233?v=v2" width="693" height="233" role="button" title="AllanP_2-1705549523121.png" alt="AllanP_2-1705549523121.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for "A"&amp;nbsp; you have values in meters of&lt;/P&gt;
&lt;P&gt;1.0&amp;nbsp; &amp;lt;- reference point&lt;/P&gt;
&lt;P&gt;1.2&lt;/P&gt;
&lt;P&gt;1.4&lt;/P&gt;
&lt;P&gt;1.6&lt;/P&gt;
&lt;P&gt;1.8&lt;/P&gt;
&lt;P&gt;2.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for "B"&amp;nbsp; you have values in meters of&lt;/P&gt;
&lt;P&gt;1.0 &amp;lt;- reference point&lt;/P&gt;
&lt;P&gt;1.2&lt;/P&gt;
&lt;P&gt;1.4&lt;/P&gt;
&lt;P&gt;1.6&lt;/P&gt;
&lt;P&gt;1.8&lt;/P&gt;
&lt;P&gt;2.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change the range to a starting point for A to 1.110&lt;/P&gt;
&lt;P&gt;change the range to a starting point for B to 1.333&lt;/P&gt;
&lt;P&gt;values "A" range[1,2] step 1.110,0.2&lt;/P&gt;
&lt;P&gt;values "B" range[1,2] step 1.333,0.2&lt;/P&gt;
&lt;P&gt;(now this offsets the vales of A by 0.111 and offsets the values of B by 0.133)&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="AllanP_3-1705549561969.png" style="width: 724px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52078i9B0596FEEA09CF85/image-dimensions/724x286?v=v2" width="724" height="286" role="button" title="AllanP_3-1705549561969.png" alt="AllanP_3-1705549561969.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="AllanP_4-1705550304065.png" style="width: 732px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52079iA48F913CF6CEA784/image-dimensions/732x257?v=v2" width="732" height="257" role="button" title="AllanP_4-1705550304065.png" alt="AllanP_4-1705550304065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for "A"&amp;nbsp; you have values in meters of&lt;/P&gt;
&lt;P&gt;1.111 &amp;lt;- reference point&lt;/P&gt;
&lt;P&gt;1.311&lt;/P&gt;
&lt;P&gt;1.511&lt;/P&gt;
&lt;P&gt;1.711&lt;/P&gt;
&lt;P&gt;1.911&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for "B"&amp;nbsp; you have values in meters of&lt;/P&gt;
&lt;P&gt;1.133&lt;/P&gt;
&lt;P&gt;1.333 &amp;lt;- reference point&lt;/P&gt;
&lt;P&gt;1.533&lt;/P&gt;
&lt;P&gt;1.733&lt;/P&gt;
&lt;P&gt;1.933&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 06:12:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584429#M6205</guid>
      <dc:creator>AllanP</dc:creator>
      <dc:date>2024-01-21T06:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the first position in the STEP command?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584434#M6206</link>
      <description>&lt;P&gt;The first value of the STEP value is the reference point for the range numbers.&lt;/P&gt;
&lt;P&gt;with a reference point of&amp;nbsp; 0 or 3 or 3000 then the values will be the same for a stepping value of 0.1, as the are multiples of the stepping number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the reference point does not have to be within the "RANGE" values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;values "A" range[1,2] step 1,0.2
values "B" range[1,2] step 1,0.2

fill "25%"
poly2_b{5} 5, 3, 3, 3, 1, 1,
0, 0, 1, 0, 0, 1, 0,
0, 0, 1,
A, 0, 1,
A, B, 1,
0, B, 1,
0, 0, -1&lt;/LI-CODE&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="AllanP_1-1705553163288.png" style="width: 1051px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52081i805AB814A81AAB5A/image-dimensions/1051x302?v=v2" width="1051" height="302" role="button" title="AllanP_1-1705553163288.png" alt="AllanP_1-1705553163288.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you get values for A of&lt;/P&gt;
&lt;P&gt;1m &amp;lt;-reference point&lt;/P&gt;
&lt;P&gt;1.2m&lt;/P&gt;
&lt;P&gt;1.4m&lt;/P&gt;
&lt;P&gt;1.6m&lt;/P&gt;
&lt;P&gt;1.8m&lt;/P&gt;
&lt;P&gt;2m&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you get values for B of&lt;/P&gt;
&lt;P&gt;1m &amp;lt;-reference point&lt;/P&gt;
&lt;P&gt;1.2m&lt;/P&gt;
&lt;P&gt;1.4m&lt;/P&gt;
&lt;P&gt;1.6m&lt;/P&gt;
&lt;P&gt;1.8m&lt;/P&gt;
&lt;P&gt;2m&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you change the reference point, and step values to:&lt;/P&gt;
&lt;P&gt;values "A" range[1,2] step 1.5,0.15&lt;BR /&gt;values "B" range[1,2] step 1.333,0.123&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="AllanP_2-1705553238030.png" style="width: 1107px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52082iEE70BD391A172A65/image-dimensions/1107x285?v=v2" width="1107" height="285" role="button" title="AllanP_2-1705553238030.png" alt="AllanP_2-1705553238030.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="AllanP_3-1705553269145.png" style="width: 1107px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52083iB91E07AEB7880C6B/image-dimensions/1107x380?v=v2" width="1107" height="380" role="button" title="AllanP_3-1705553269145.png" alt="AllanP_3-1705553269145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you get values for A of&lt;/P&gt;
&lt;P&gt;1.05m&lt;/P&gt;
&lt;P&gt;1.2m&lt;/P&gt;
&lt;P&gt;1.35m&lt;/P&gt;
&lt;P&gt;1.5m &amp;lt;-reference point&lt;/P&gt;
&lt;P&gt;1.65m&lt;/P&gt;
&lt;P&gt;1.8m&lt;/P&gt;
&lt;P&gt;1.95m&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you get values for B of&lt;/P&gt;
&lt;P&gt;1.087m&lt;/P&gt;
&lt;P&gt;1.21m&lt;/P&gt;
&lt;P&gt;1.333m &amp;lt;-reference point&lt;/P&gt;
&lt;P&gt;1.456m&lt;/P&gt;
&lt;P&gt;1.579m&lt;/P&gt;
&lt;P&gt;1.702m&lt;/P&gt;
&lt;P&gt;1.825m&lt;/P&gt;
&lt;P&gt;1.948m&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 06:13:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584434#M6206</guid>
      <dc:creator>AllanP</dc:creator>
      <dc:date>2024-01-21T06:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: What is the first position in the STEP command?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584953#M6214</link>
      <description>&lt;P&gt;I'm kind of getting it. Don't really see (well...understand) the usefulness right now. I'll keep the reference point as my first point in the array. Thanks for your extensive answers trying to guide the blind.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 16:03:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-the-first-position-in-the-STEP-command/m-p/584953#M6214</guid>
      <dc:creator>Mats Knutsson</dc:creator>
      <dc:date>2024-01-22T16:03:14Z</dc:date>
    </item>
  </channel>
</rss>

