<?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 Problem with graphical hotspots in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589126#M6344</link>
    <description>&lt;P&gt;Hi, everyone!&lt;/P&gt;
&lt;P&gt;I'm trying to educate myself with GDL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the moment I'm trying to figure out how to use graphical hotspot. Generally I understand the idea but I have some issues.&lt;/P&gt;
&lt;P&gt;I've made two circles, where the first one is static and the second one is movable.&lt;/P&gt;
&lt;P&gt;Issue is that I want the moving point to be exactly at the right side (or right pole) of the second circle. However when I try to move it the cursor goes from right side to the center of the circle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried to improve my code with chatGPT but it failed miserably.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem as I understand it is with coordinates of the moving point and the second circle itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a code I made. There are few variables that defined:&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;radCircle - circle radius
movX - parameter for hotspots to works with

! First circle
CIRCLE2 0, 0, radCircle
hsID = hsID+1
HOTSPOT2 0, 0, hsID ! Center point of the first circle 
hsID = hsID+1
HOTSPOT2 radCircle, 0, hsID ! Hotspot for the right side of the first circle

! Second circle
CIRCLE2 movX, 0, radCircle
hsID = hsID+1
HOTSPOT2 0, 0, hsID, movX, 1 ! Base point
hsID = hsID+1
HOTSPOT2 movRad, 0, hsID, movX, 2 ! Moving point
hsID = hsID+1
HOTSPOT2 -radCircle, 0, hsID, movX, 3 ! Reference point&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 11:20:27 GMT</pubDate>
    <dc:creator>Finlay_Moran</dc:creator>
    <dc:date>2024-09-26T11:20:27Z</dc:date>
    <item>
      <title>Problem with graphical hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589126#M6344</link>
      <description>&lt;P&gt;Hi, everyone!&lt;/P&gt;
&lt;P&gt;I'm trying to educate myself with GDL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the moment I'm trying to figure out how to use graphical hotspot. Generally I understand the idea but I have some issues.&lt;/P&gt;
&lt;P&gt;I've made two circles, where the first one is static and the second one is movable.&lt;/P&gt;
&lt;P&gt;Issue is that I want the moving point to be exactly at the right side (or right pole) of the second circle. However when I try to move it the cursor goes from right side to the center of the circle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried to improve my code with chatGPT but it failed miserably.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem as I understand it is with coordinates of the moving point and the second circle itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a code I made. There are few variables that defined:&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;radCircle - circle radius
movX - parameter for hotspots to works with

! First circle
CIRCLE2 0, 0, radCircle
hsID = hsID+1
HOTSPOT2 0, 0, hsID ! Center point of the first circle 
hsID = hsID+1
HOTSPOT2 radCircle, 0, hsID ! Hotspot for the right side of the first circle

! Second circle
CIRCLE2 movX, 0, radCircle
hsID = hsID+1
HOTSPOT2 0, 0, hsID, movX, 1 ! Base point
hsID = hsID+1
HOTSPOT2 movRad, 0, hsID, movX, 2 ! Moving point
hsID = hsID+1
HOTSPOT2 -radCircle, 0, hsID, movX, 3 ! Reference point&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:20:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589126#M6344</guid>
      <dc:creator>Finlay_Moran</dc:creator>
      <dc:date>2024-09-26T11:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with graphical hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589142#M6349</link>
      <description>&lt;P&gt;You have Circle 1 or radius&amp;nbsp;&lt;EM&gt;radCircle&lt;/EM&gt;, and Circle 2 of radius&amp;nbsp;&lt;EM&gt;radCircle&lt;/EM&gt; which can move along a linear path that runs through Circle 1?&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;hsID = 0

CIRCLE2	0,		0,	radCircle
CIRCLE2	movX,	0,	radCircle

HOTSPOT2	radCircle,			0,	hsID,	movX,	1		:	hsID = hsID+1	!Base
HOTSPOT2	movX + radCircle,	0,	hsID,	movX,	2		:	hsID = hsID+1	!Moving
HOTSPOT2	-radCircle,			0,	hsID,	movX,	3		:	hsID = hsID+1	!Ref&lt;/LI-CODE&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;Ling.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 02:23:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589142#M6349</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2024-02-21T02:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with graphical hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589148#M6352</link>
      <description>&lt;P&gt;Wow! Thank you so much. I didn't expect it to be so easily done.&lt;/P&gt;&lt;P&gt;Just to be clear, the problem was that base point was at the center of coordinates. But why moving the base point made everything as intended?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 04:26:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589148#M6352</guid>
      <dc:creator>Finlay_Moran</dc:creator>
      <dc:date>2024-02-21T04:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with graphical hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589149#M6353</link>
      <description>&lt;P&gt;You had&amp;nbsp;&lt;EM&gt;movRad&lt;/EM&gt; so while you edited&amp;nbsp;&lt;EM&gt;movX&lt;/EM&gt; the node you were actually moving never changed.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 04:43:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-graphical-hotspots/m-p/589149#M6353</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2024-02-21T04:43:16Z</dc:date>
    </item>
  </channel>
</rss>

