<?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: How to make certain point of Poly2_B shape movable in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357146#M1270</link>
    <description>&lt;P&gt;Use the same hotspot definition method you have been (x direction) then simply do a "ROT2" 2d transformation to rotate the hotspot relative to the diagonal angle.&lt;/P&gt;&lt;P&gt;You will obviously have to do basic math to position the hotspot reference just remember you DON'T have to put these position values in the hotspot coordinates but instead can put them in the 2d transformations such as "ADD2" and "ROT2" before the hotspot code. It's just easier to read the logic this way and keeps the hotspot definition simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add2 x, y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;!you do the maths &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;rot2 45&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hotspot code&lt;/P&gt;&lt;P&gt;del 2&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 22:27:06 GMT</pubDate>
    <dc:creator>Kristian Bursell</dc:creator>
    <dc:date>2022-09-26T22:27:06Z</dc:date>
    <item>
      <title>How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356962#M1264</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently I started investing my time in learning GDL scripting. So I apologize if my question is silly. I will probably have many of them in the future, so thank you upfront for understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is regarding the graphical hotspots department.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make it so that certain spots from POLY2_B shape can be moved freely,&lt;/P&gt;&lt;P&gt;Also, I struggle in figuring out how to make code structure regarding the offset of the diagonal shape with the ability to have a parameter for thickness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;Stefan Veselinović&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parking spot -handicap.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30116iB3E9A2A39A2C8FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Parking spot -handicap.png" alt="Parking spot -handicap.png" /&gt;&lt;/span&gt;&lt;A class="" href="https://community.Graphisoft.com/t5/forums/postpage/category-id/EN/choose-node/true#" target="_blank" rel="noopener"&gt;&lt;IMG src="https://community.Graphisoft.com/skins/images/49CA581D36A28CA4D070CCDC8F17131F/responsive_peak/images/icon_toggle_closed_list_tree.png" border="0" alt="Click to expand Click to expand Collaborate category Click to collapse Collaborate category" title="Click to expand Collaborate category" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 19:34:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356962#M1264</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-09-24T19:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356974#M1265</link>
      <description>&lt;P&gt;you need to create a hotspot that modify the C dimension when you move it, to made this is necesary define a group of hotspot working together , Base hotspot, reference hotspot and moving hotspot , the base hotspot will be in the start of C dimension and rererence hotspot indicate de direction where the spot will move and the move hotspot will be the one you move and will be and the end of dimension C&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 23:23:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356974#M1265</guid>
      <dc:creator>Jorge_Arreguin</dc:creator>
      <dc:date>2022-09-24T23:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356987#M1266</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/42885"&gt;@Jorge_Arreguin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;I understand the basic concept of how hotspot works, and I already made Variable C work. What confuses me is, is there a way to create an independent code structure to move that one point independently, inside my C distance (DX1 distance as shown in the picture)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried following code structure:&lt;/P&gt;&lt;P&gt;!LDX parameter for DX1 distance&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;HOTSPOT2 A,&amp;nbsp; &amp;nbsp; &amp;nbsp; St, hsid+1,&amp;nbsp; &amp;nbsp; &amp;nbsp;LDX, 1+128: hsid=hsid+1&amp;nbsp; &amp;nbsp;!base (hidden)&lt;BR /&gt;HOTSPOT2 -1,&amp;nbsp; &amp;nbsp; &amp;nbsp; St, hsid+1,&amp;nbsp; &amp;nbsp; &amp;nbsp;LDX, 3: hsid=hsid+1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !referece&lt;BR /&gt;HOTSPOT2 DX1,&amp;nbsp; St, hsid+1,&amp;nbsp; &amp;nbsp; &amp;nbsp;LDX, 2: hsid=hsid+1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !moving&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this code, I am able to create a hotspot, but without luck in changing DX1 length&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="shape hotspot.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30122iFF169199A5314578/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shape hotspot.png" alt="shape hotspot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 07:18:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356987#M1266</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-09-25T07:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356989#M1267</link>
      <description>&lt;P&gt;Full code structure&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="code structure.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30123iD5DC789ADFAD0EB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="code structure.png" alt="code structure.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 07:22:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/356989#M1267</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-09-25T07:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357043#M1268</link>
      <description>&lt;P&gt;Two problems I see are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You have locked the value of DX1 with the "DX1 = A+0.504"&lt;/LI&gt;&lt;LI&gt;Either LDX needs to control DX1 or you should just use LDX instead of DX1 if it is your parameter.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 25 Sep 2022 21:55:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357043#M1268</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2022-09-25T21:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357131#M1269</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/1918"&gt;@Kristian Bursell&lt;/a&gt;&amp;nbsp; Thank you very much for help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Such a dumb thing to not notice :D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I have your attention, could you help me also with how to structure the code to have a diagonal shape thickness as a parameter?&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="ArchiMind_0-1664225702624.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30152iD7A3D27A149C3C5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArchiMind_0-1664225702624.png" alt="ArchiMind_0-1664225702624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:56:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357131#M1269</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-09-26T20:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357146#M1270</link>
      <description>&lt;P&gt;Use the same hotspot definition method you have been (x direction) then simply do a "ROT2" 2d transformation to rotate the hotspot relative to the diagonal angle.&lt;/P&gt;&lt;P&gt;You will obviously have to do basic math to position the hotspot reference just remember you DON'T have to put these position values in the hotspot coordinates but instead can put them in the 2d transformations such as "ADD2" and "ROT2" before the hotspot code. It's just easier to read the logic this way and keeps the hotspot definition simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add2 x, y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;!you do the maths &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;rot2 45&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hotspot code&lt;/P&gt;&lt;P&gt;del 2&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 22:27:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357146#M1270</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2022-09-26T22:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make certain point of Poly2_B shape movable</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357167#M1271</link>
      <description>&lt;P&gt;Thank you again for this advice. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 05:18:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-make-certain-point-of-Poly2-B-shape-movable/m-p/357167#M1271</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-09-27T05:18:12Z</dc:date>
    </item>
  </channel>
</rss>

