<?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: GDL: Hotspot Dynamic paramReference in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-Dynamic-paramReference/m-p/375232#M1067</link>
    <description>&lt;P&gt;I worked out how to consolodate the relevant hotspots into a subroutine, so I have only gained 20 lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;j = 3
k = -1
goSUB "Marker_Line"&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;"Marker_Line":
IF lp1_uniform_b = 0 &amp;amp; lp2_uniform_b = 0 then
HOTSPOT2 (marker_length - lp1[i][j]) * GLOB_SCALE * (-1 * k),					lsg_elevation,								lsg_uID,	lp2_h[i][j],		1+128+1024		: lsg_uID = lsg_uID +1	!base

HOTSPOT2 (marker_length - lp1[i][j] - lp2_h[i][j]) * GLOB_SCALE * (-1 * k),		lsg_elevation,								lsg_uID,	lp2_h[i][j],		2+1024			: lsg_uID = lsg_uID +1	!Right moving

HOTSPOT2 (marker_length * GLOB_SCALE + 1) * (-1 * k),							lsg_elevation,								lsg_uID,	lp2_h[i][j],		3+1024			: lsg_uID = lsg_uID +1	!ref&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 07:30:42 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2023-04-03T07:30:42Z</dc:date>
    <item>
      <title>GDL: Hotspot Dynamic paramReference</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-Dynamic-paramReference/m-p/375216#M1066</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to use a dynamic&amp;nbsp;&lt;EM&gt;paramReference&lt;/EM&gt; in a&amp;nbsp;&lt;STRONG&gt;Hotspot&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;IF lp1_uniform_b = 1 then
			linepart1 = lp1_uniform
		ELSE
			linepart1 = lp1[i][3]
endIF
IF lp2_uniform_b = 1 then
			linepart2 = lp2_uniform
		ELSE
			linepart2 = lp2_h[i][3]
endIF

HOTSPOT2 (marker_length - linepart1 - linepart2) * GLOB_SCALE,		lsg_elevation,								lsg_uID,	lp2_v[i][3],	1+128+1024					: lsg_uID = lsg_uID +1	!base

HOTSPOT2 (marker_length - linepart1 - linepart2) * GLOB_SCALE,		lsg_elevation + lp2_v[i][3] * GLOB_SCALE,	lsg_uID,	lp2_v[i][3],	2+1024						: lsg_uID = lsg_uID +1	!Left moving

HOTSPOT2 (marker_length - linepart1 - linepart2) * GLOB_SCALE,		lsg_elevation-1,							lsg_uID,	lp2_v[i][3],	3+1024						: lsg_uID = lsg_uID +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;I would rather not need to duplicate all of my hotspots for the four different variations... an extra 168 lines...&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 07:29:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-Dynamic-paramReference/m-p/375216#M1066</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-04-03T07:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: Hotspot Dynamic paramReference</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-Dynamic-paramReference/m-p/375232#M1067</link>
      <description>&lt;P&gt;I worked out how to consolodate the relevant hotspots into a subroutine, so I have only gained 20 lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;j = 3
k = -1
goSUB "Marker_Line"&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;"Marker_Line":
IF lp1_uniform_b = 0 &amp;amp; lp2_uniform_b = 0 then
HOTSPOT2 (marker_length - lp1[i][j]) * GLOB_SCALE * (-1 * k),					lsg_elevation,								lsg_uID,	lp2_h[i][j],		1+128+1024		: lsg_uID = lsg_uID +1	!base

HOTSPOT2 (marker_length - lp1[i][j] - lp2_h[i][j]) * GLOB_SCALE * (-1 * k),		lsg_elevation,								lsg_uID,	lp2_h[i][j],		2+1024			: lsg_uID = lsg_uID +1	!Right moving

HOTSPOT2 (marker_length * GLOB_SCALE + 1) * (-1 * k),							lsg_elevation,								lsg_uID,	lp2_h[i][j],		3+1024			: lsg_uID = lsg_uID +1	!ref&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 07:30:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-Dynamic-paramReference/m-p/375232#M1067</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-04-03T07:30:42Z</dc:date>
    </item>
  </channel>
</rss>

