<?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 Editable hotspots disappearing in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271481#M3095</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I noticed the very strange behavior of editable hotspots. Written on ArchiCAD 21 it did behave OK. But later, in ArchiCAD 23 &amp;amp; 24 editable hotspots have disappeared.&lt;BR /&gt;The reason is that the hotpots existed inside of two IF - ENDIF conditions:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;IF ... THEN
     IF ... THEN
        HOTSPOT ...
     ENDIF
ENDIF&lt;/PRE&gt;
&lt;BR /&gt;As soon as I removed one IF, hotspots appeared in ArchiCAD 24 again.&lt;BR /&gt;&lt;BR /&gt;Is it considered as a software bug or it is change in how ArchiCAD interprets editable hotspots creating and all GDL scripts must follow this logic now - to depend ONLY on one IF ?&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 07:10:26 GMT</pubDate>
    <dc:creator>Podolsky</dc:creator>
    <dc:date>2021-09-14T07:10:26Z</dc:date>
    <item>
      <title>Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271481#M3095</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I noticed the very strange behavior of editable hotspots. Written on ArchiCAD 21 it did behave OK. But later, in ArchiCAD 23 &amp;amp; 24 editable hotspots have disappeared.&lt;BR /&gt;The reason is that the hotpots existed inside of two IF - ENDIF conditions:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;IF ... THEN
     IF ... THEN
        HOTSPOT ...
     ENDIF
ENDIF&lt;/PRE&gt;
&lt;BR /&gt;As soon as I removed one IF, hotspots appeared in ArchiCAD 24 again.&lt;BR /&gt;&lt;BR /&gt;Is it considered as a software bug or it is change in how ArchiCAD interprets editable hotspots creating and all GDL scripts must follow this logic now - to depend ONLY on one IF ?&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:10:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271481#M3095</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-09-14T07:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271482#M3096</link>
      <description>I just made a test where I ensured both IFs resolve to true.&lt;BR /&gt;
The hotspot was there in plan.&lt;BR /&gt;
Not sure whats going on there for you.</description>
      <pubDate>Sun, 30 May 2021 10:46:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271482#M3096</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-05-30T10:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271483#M3097</link>
      <description>Sorry, I was wrong. Three IFs instead of two. And also FOR - NEXT.&lt;BR /&gt;
&lt;BR /&gt;
This is the code that is not working anymore in ArchiCAD 23 and 24:&lt;BR /&gt;

&lt;PRE&gt;IF ap_explodeMode AND (GLOB_VIEW_TYPE=3 OR GLOB_VIEW_TYPE=6) AND GLOB_PREVIEW_MODE&amp;lt;&amp;gt;1 THEN

	IF _show THEN

		IF NOT(ap_explodeCoorZ) THEN

			ADD wallStart+(wallEnd-wallStart)/2, 0, wallTop/2

			FOR i=1 TO 2

				IF i=2 THEN ADDY -ap_panelThickness

				HOTSPOT 0, 0, 0, 1000*i+1, ap_explodeCoorY, 1+128 
				HOTSPOT 0, -0.1, 0, 1000*i+2, ap_explodeCoorY, 3 
				HOTSPOT 0, ap_explodeCoorY, 0, 1000*i+3, ap_explodeCoorY, 2

				IF i=2 THEN DEL 1

			NEXT i

			DEL 1

		ENDIF

		IF NOT(ap_explodeCoorY) THEN

			ADD wallStart+(wallEnd-wallStart)/2, -ap_panelThickness/2, wallTop

			HOTSPOT 0, 0, 0, 1011, ap_explodeCoorZ, 1+128 
			HOTSPOT 0, 0,-0.1, 1012, ap_explodeCoorZ, 3 
			HOTSPOT 0, 0, ap_explodeCoorZ, 1013, ap_explodeCoorZ, 2

			DEL 1

		ENDIF

	ENDIF

ENDIF
&lt;/PRE&gt;</description>
      <pubDate>Sun, 30 May 2021 10:55:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271483#M3097</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-30T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271484#M3098</link>
      <description>I also noticed that in some cases editable hotspots defined in macro script been shown and worked fine in ArchiCAD 21, and in latest versions turned into simple hotspot but still acting as editable hotspots or sometimes even stopped working as editable hotspots.</description>
      <pubDate>Sun, 30 May 2021 11:00:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271484#M3098</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-30T11:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271485#M3099</link>
      <description>Is there a reason there are no unID for your editable hotspots?&lt;BR /&gt;
&lt;BR /&gt;
I was always with the understanding that they are essential to properly use editable hotspots</description>
      <pubDate>Sun, 30 May 2021 18:55:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271485#M3099</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2021-05-30T18:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271486#M3100</link>
      <description>I have nested hotspots with in groups and looped and looped and have no issues.&lt;BR /&gt;
&lt;BR /&gt;
The only time my hotspot struggle and I'm pretty sure it's just accessories but if I have my model floor plan on core only then I cannot edit a hotspots in 3D</description>
      <pubDate>Sun, 30 May 2021 18:56:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271486#M3100</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2021-05-30T18:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271487#M3101</link>
      <description>&lt;BLOCKQUOTE&gt;SenecaDesignLLC wrote:&lt;BR /&gt;
Is there a reason there are no unID for your editable hotspots?&lt;BR /&gt;
&lt;BR /&gt;
I was always with the understanding that they are essential to properly use editable hotspots
&lt;/BLOCKQUOTE&gt;

No, they have unID. It's 1000*i+1, 1000*i+2, 1000*i+3 and 1011, 1012, 1013&lt;BR /&gt;
&lt;BR /&gt;
In the first loop I'm getting 1001, 1002, 1003 and 2001, 2002, 2003&lt;BR /&gt;
&lt;BR /&gt;
And I didn't find them exactly in core-only view, as you mentioned. But I'm not sure is it really an issue - I need to take a look at this.</description>
      <pubDate>Sun, 30 May 2021 19:20:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271487#M3101</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-30T19:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271488#M3102</link>
      <description>i copied and pasted your code and seem to not have issues with the hotspots working.  here is the test object. maybe there is something else in play.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://bit.ly/2RUHs9i" target="_blank"&gt;https://bit.ly/2RUHs9i&lt;/A&gt;</description>
      <pubDate>Sun, 30 May 2021 19:58:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271488#M3102</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2021-05-30T19:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271489#M3103</link>
      <description>I don't have time to test your script but I can make 2 suggestions:&lt;BR /&gt;
&lt;BR /&gt;
1. unID's shouldn't be set as a multiple of the loop (Though I do this in Infinite Openings) as there are possibilities for doubling up of ID's. I set a base unID at the start of the script (3D in this case) and then add a count every time an ID is required&lt;BR /&gt;
&lt;BR /&gt;
eg. hotspot, x, y, z, unID, paramReference: unID = unID +1&lt;BR /&gt;
&lt;BR /&gt;
Though I don't think this is the issue for your code. so perhaps suggestion 2 might help.&lt;BR /&gt;
&lt;BR /&gt;
2. I have noticed errors occur when I combine loops with conditional statements on single lines. By that I mean I try to write a single line of code like this:&lt;BR /&gt;
&lt;BR /&gt;
if x = y then: parameters a = b, c = d, e = f: endif&lt;BR /&gt;
&lt;BR /&gt;
This works fine but for some reason it does not get computed inside a loop and therefore no values are returned and this often results in a error (but that is script specific). It also happens with or/else/and statements in a line.&lt;BR /&gt;
&lt;BR /&gt;
SO perhaps it is your first line of code "IF... AND... AND... THEN"&lt;BR /&gt;
&lt;BR /&gt;
Try breaking this up into separate lines and then also try quarantining the whole code (hide with !) and then slowly unravel (unhide line by line) it from the end (Hotspot commands) to see where it trips ups.</description>
      <pubDate>Sun, 30 May 2021 23:26:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271489#M3103</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-05-30T23:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Editable hotspots disappearing</title>
      <link>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271490#M3104</link>
      <description>Strange. I need to look into the code again. It's a Structural Insulated Wall Panel in my library. Choosing Explode mode in MVO it should show hotspots, that let to move the panel up or on side - to create 3D explode.&lt;BR /&gt;
&lt;BR /&gt;
In the old project file, where I used these panels, all hotspots disappeared. In the new file hotspots are shown, but I cannot move them - after I move, they stay in the same position.&lt;BR /&gt;
It definitely something wrong in the code. Maybe because I'm using NOT(ap_explodeCoorZ) for floating point number (length).</description>
      <pubDate>Sun, 30 May 2021 23:44:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Editable-hotspots-disappearing/m-p/271490#M3104</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-30T23:44:37Z</dc:date>
    </item>
  </channel>
</rss>

