<?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: Help with dynamic hotspots counter in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341531#M1931</link>
    <description>&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the hotspots are to control the position then they need to be used in the "ADDX" function within the FOR-loop.&lt;/P&gt;&lt;P&gt;The dynamic hotspot definition sits outside the FOR-loop (otherwise it gets messed up by the ADDX function), and then you use the array parameter in your ADDX function in the loop.&lt;/P&gt;&lt;P&gt;If the array parameter contains the X position then you need to add a "DEL 1" after the gosub "Leg" in the loop. However if the array parameter contains the distance between each leg then your current structure without the "DEL 1" is correct.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 00:17:44 GMT</pubDate>
    <dc:creator>Kristian Bursell</dc:creator>
    <dc:date>2022-06-17T00:17:44Z</dc:date>
    <item>
      <title>Help with dynamic hotspots counter</title>
      <link>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341524#M1930</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to create a simple table like in attach where I can choose numer of internal legs and give them dynamic hotspots so I can move the freely within the table (I will use values from an array after understanding the hotspot creation. I know how dynamic hotspots work but I haven't cracked how they work togehter with the FOR-loop.&lt;BR /&gt;I just looked at Erichs Framing object but it was too complex for me right now. I just need the simple example with BLOCK.&lt;/P&gt;
&lt;P&gt;Br,&lt;/P&gt;
&lt;P&gt;Mats&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;!------ countertop
ADDZ 0.8
BRICK A,B,0.05
DEL 1

!------ first and last leg
GOSUB "LEG"
ADDX A
MULX -1
GOSUB "LEG"

!------ internal legs
IF numberofinternallegs &amp;gt; 0 THEN
FOR i = 1 TO numberofinternallegs
ADDX 0.5
GOSUB "LEG"
NEXT i
ENDIF
END

"LEG":
BLOCK 0.05,B,0.8

RETURN&lt;/LI-CODE&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/54984i6178B8DAD6D848BF/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2022-06-16_22-51-06.png" title="2022-06-16_22-51-06.png" /&gt;</description>
      <pubDate>Fri, 17 Jun 2022 13:49:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341524#M1930</guid>
      <dc:creator>Mats_Knutsson</dc:creator>
      <dc:date>2022-06-17T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dynamic hotspots counter</title>
      <link>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341531#M1931</link>
      <description>&lt;P&gt;Hi Mats,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the hotspots are to control the position then they need to be used in the "ADDX" function within the FOR-loop.&lt;/P&gt;&lt;P&gt;The dynamic hotspot definition sits outside the FOR-loop (otherwise it gets messed up by the ADDX function), and then you use the array parameter in your ADDX function in the loop.&lt;/P&gt;&lt;P&gt;If the array parameter contains the X position then you need to add a "DEL 1" after the gosub "Leg" in the loop. However if the array parameter contains the distance between each leg then your current structure without the "DEL 1" is correct.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 00:17:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341531#M1931</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2022-06-17T00:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dynamic hotspots counter</title>
      <link>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341551#M1932</link>
      <description>&lt;P&gt;Thanks Kristian but I need a simple example. Remember I'm a noob. As usual I don't have the time to learn through trial&amp;amp;error. I looked at the code of the Shelving object you did for us but I need a simpler example with this particular coding isolated. If you can squeeze an hour or so to code this simple example so that I can check it I'd be delighted and you can send the bill using the same contact info as last time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really would like to have the time to sit down and study gdl more but I just don't have that time...&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 06:37:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341551#M1932</guid>
      <dc:creator>Mats_Knutsson</dc:creator>
      <dc:date>2022-06-17T06:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dynamic hotspots counter</title>
      <link>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341570#M1933</link>
      <description>&lt;P&gt;This should do the job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1CtGvo-7gJXO4xsVvZeReAWXMLVRlVE4G/view?usp=drivesdk" target="_blank"&gt;https://drive.google.com/file/d/1CtGvo-7gJXO4xsVvZeReAWXMLVRlVE4G/view?usp=drivesdk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:34:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341570#M1933</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2022-06-17T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dynamic hotspots counter</title>
      <link>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341600#M1934</link>
      <description>&lt;P&gt;Gee thanks. I'll have a look after work is done &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 12:44:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341600#M1934</guid>
      <dc:creator>Mats_Knutsson</dc:creator>
      <dc:date>2022-06-17T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dynamic hotspots counter</title>
      <link>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341732#M1935</link>
      <description>&lt;P&gt;Sure Mats,&lt;/P&gt;&lt;P&gt;Just send me the object you have created so far and I will make it work. It will only take me 3 or 4 minutes.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 22:23:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Help-with-dynamic-hotspots-counter/m-p/341732#M1935</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2022-06-19T22:23:45Z</dc:date>
    </item>
  </channel>
</rss>

