<?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 Called Hotspots don't work with dimensions? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324303#M2351</link>
    <description>&lt;P&gt;Can someone confirm if it is possible to create 2D/3D hotspots in a called macro that associate with dimensions? At present I am seeing the required macro hotspots in the model (each generated with unique ids) but the dimension tool ignores them. Other tools seem quite happy to work with the hotspots.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 17:02:57 GMT</pubDate>
    <dc:creator>DGSketcher</dc:creator>
    <dc:date>2021-12-06T17:02:57Z</dc:date>
    <item>
      <title>Called Hotspots don't work with dimensions?</title>
      <link>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324303#M2351</link>
      <description>&lt;P&gt;Can someone confirm if it is possible to create 2D/3D hotspots in a called macro that associate with dimensions? At present I am seeing the required macro hotspots in the model (each generated with unique ids) but the dimension tool ignores them. Other tools seem quite happy to work with the hotspots.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:02:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324303#M2351</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2021-12-06T17:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Called Hotspots don't work with dimensions?</title>
      <link>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324306#M2352</link>
      <description>&lt;P&gt;I have no issues with any objects hotspots, dynamic or not, not linking with dimensions&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 18:30:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324306#M2352</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2021-12-06T18:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Called Hotspots don't work with dimensions?</title>
      <link>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324377#M2353</link>
      <description>&lt;P&gt;Thanks for the reassurance. Do you have any tips on how you handle the unique Hotspot IDs between the parent &amp;amp; macro?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 09:26:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324377#M2353</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2021-12-07T09:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Called Hotspots don't work with dimensions?</title>
      <link>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324409#M2354</link>
      <description>&lt;P&gt;You can call the macro with a starting number for the hotspot IDs.&lt;/P&gt;&lt;P&gt;You'll only need one additinal parameter. This works totally fine.&lt;/P&gt;&lt;P&gt;If the number of hotspots inside the macro is dynamic and you don't know how many there are in advance you can either return the final hotspot ID from the macro.&lt;/P&gt;&lt;P&gt;Or....&lt;/P&gt;&lt;P&gt;Hotspots need to be unique, from v25 on this will be especially enforced.&lt;/P&gt;&lt;P&gt;But they don't need to be &lt;EM&gt;consecutive&lt;/EM&gt;. This means you can just "reserve" a "corridor" for the hotspots. Example code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;! example
unID = 1
hotspot2 ... unID : unID=unID+1
...
call "macro" parameters startID = unID returned_parameters unID_ret

unID = unID_ret
!----- OR -----!
! (without ID handover and returned_parameters)

call "macro"

unID = unID + 1000
! where 1000 is a number you know won't be exceeded&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However with macros which are not done by you it's quite tricky, because the way it's programmed might collide with your unique IDs.&lt;/P&gt;&lt;P&gt;The solution then is to start in your main GDL with a really high number for the hotspot ID.&lt;/P&gt;&lt;P&gt;Again: the IDs don't need to be consecutive, nor do they even need to be in ascending order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still the corridor/fixed offset method has one advantage:&lt;/P&gt;&lt;P&gt;Since the ID is used to bind the dimension to this place you won't lose important dimensions or have them re-placed randomly when changing the object.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Hotspots •
(Macros)

Consecutive Hs IDs:
•---(•---•---•)---•---•---(•---•)
1    2   3   4    5   6    7   8

Object changed:
•---(•---•)---•---(•---)
1    2   3    4    5         [new IDs]
1    2   3 4? 5 6? 7 8?      [old IDs]
Dimensions bound to ID 4 and onwards will be placed wrong!

Fixed offset:
•---(•---•---•)---•---•---(•---•)
1    10  11  12   30  31   50  51

Object changed:
•---(•---•)---•---(•---)
1   10   11   30   50       [new IDs]
No dims re-placed  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Dec 2021 16:19:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324409#M2354</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-12-07T16:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Called Hotspots don't work with dimensions?</title>
      <link>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324415#M2355</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/640"&gt;@runxel&lt;/a&gt;&amp;nbsp;Thank you for the clarity &amp;amp; tips. The hotspots were limited so I have done a subroutine in the parent for now. The problem I was getting was using multiple calls to the same macro I couldn't get the unID to advance, I just kept getting duplicate unID warnings. These were also valid warnings as the dimensions didn't associate with the picked points. Obviously user error. I will revisit this shortly as it will clean up the code but for now I need to get the associated drawings out. Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:03:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Called-Hotspots-don-t-work-with-dimensions/m-p/324415#M2355</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2021-12-07T17:03:35Z</dc:date>
    </item>
  </channel>
</rss>

