<?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: Custom Scripted 2D Hotspot Editors in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579283#M5990</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow, cool stuff. Haven't seen this one before, but no surprise, CADswift does pretty good stuff. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hotlines, Hotarcs, etc. are just invisible lines for snapping/dimensioning, you won't be able to make anything interactive with them. The only way for graphical editing in objects is by using hotspots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By themselves, hotspots also don't do much, just give you points you can snap to or dimension. These standard hotspots appear as black dots. But you can make them interactive, so you can perform stretching/rotating operations. These hotspots are the purple/pink rhombus shaped spots. These work in a way that when you grab that spot, and start pulling on it, you are actually changing the value of a number. It is just like entering it manually, except graphically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, in this case I am assuming that this kind of rotating/stretching feature is "being abused" to make this work. Most likely, when you pull on that hotspot, you are going to be editing a number, and the code behind it is written in a way, that if the number is at 90&lt;SPAN&gt;° the code will perform some command, and if it is at 180° it will perform a different command (or something of that nature).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can find out more about how to make editable hotspots here:&amp;nbsp;&lt;A href="https://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also find out more about how to tell if the value was just changed using the GLOB_MODPAR_NAME global in the same article (so it would only perform the command when you change it, and not constantly while the value is 90°).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also use the VALUES command to limit the available steps (e.g. so you would only be able to set 0, 90, 180, 270 degrees, and no other options):&amp;nbsp;&lt;A href="https://gdl.graphisoft.com/gdl-basics/parameter-logic" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics/parameter-logic&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is my 2 cents.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 10:36:41 GMT</pubDate>
    <dc:creator>danielk</dc:creator>
    <dc:date>2023-12-07T10:36:41Z</dc:date>
    <item>
      <title>Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579254#M5988</link>
      <description>&lt;P&gt;I have seen objects in the past where people have scripted additional custom hotspots editors into their object so you can active 'edit mode' in the object for example and there are hotspots / hotlines that spell out words etc in 2D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below screenshot of the type of thing from a CADSwift object:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottjm_0-1701933529650.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/50190i12883D78AFF8DEB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottjm_0-1701933529650.png" alt="scottjm_0-1701933529650.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I went hunting but I couldn't find anything definitive on how to make them.&amp;nbsp; hotline2 is only an invisible snap it seems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone got any ideas or made one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:33:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579254#M5988</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2024-09-26T11:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579275#M5989</link>
      <description>&lt;P&gt;Interesting idea to have edit mode. I have an MVO switch to display a list of key parameters, I guess edit mode would need something similar.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would imagine in simple terms it is a case of establishing a base point and then coordination of graphics and a controlled stretchy hotspot distance. Previously I have simply dragged / rotated a hotspot to set a parameter and the 2D image updates. Coordinating that with option lists is a clever idea, but it may be frustrating if the graphics clash with the rest of the drawing. I would be really impressed if the option list only appeared for a single hotspot when it was moved, I have a feeling that should be possible if you can manage the options with last moved hotspot (glob_modpar_name?)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 08:58:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579275#M5989</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-12-07T08:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579283#M5990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow, cool stuff. Haven't seen this one before, but no surprise, CADswift does pretty good stuff. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hotlines, Hotarcs, etc. are just invisible lines for snapping/dimensioning, you won't be able to make anything interactive with them. The only way for graphical editing in objects is by using hotspots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By themselves, hotspots also don't do much, just give you points you can snap to or dimension. These standard hotspots appear as black dots. But you can make them interactive, so you can perform stretching/rotating operations. These hotspots are the purple/pink rhombus shaped spots. These work in a way that when you grab that spot, and start pulling on it, you are actually changing the value of a number. It is just like entering it manually, except graphically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, in this case I am assuming that this kind of rotating/stretching feature is "being abused" to make this work. Most likely, when you pull on that hotspot, you are going to be editing a number, and the code behind it is written in a way, that if the number is at 90&lt;SPAN&gt;° the code will perform some command, and if it is at 180° it will perform a different command (or something of that nature).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can find out more about how to make editable hotspots here:&amp;nbsp;&lt;A href="https://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also find out more about how to tell if the value was just changed using the GLOB_MODPAR_NAME global in the same article (so it would only perform the command when you change it, and not constantly while the value is 90°).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also use the VALUES command to limit the available steps (e.g. so you would only be able to set 0, 90, 180, 270 degrees, and no other options):&amp;nbsp;&lt;A href="https://gdl.graphisoft.com/gdl-basics/parameter-logic" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics/parameter-logic&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is my 2 cents.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:36:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579283#M5990</guid>
      <dc:creator>danielk</dc:creator>
      <dc:date>2023-12-07T10:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579398#M6004</link>
      <description>&lt;P&gt;When you say&amp;nbsp;&lt;EM&gt;"Edit Mode",&amp;nbsp;&lt;/EM&gt;what is the visibility toggle? MVO, parameter toggle, selection?&lt;/P&gt;
&lt;P&gt;Maybe Kristian will reveal his secrets =P&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 01:46:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579398#M6004</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-12-08T01:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579404#M6005</link>
      <description>&lt;P&gt;As Daniel wrote, it is the position of a hotspot that sets a certain value.&lt;/P&gt;
&lt;P&gt;That value then gets interpreted as a particular command.&lt;/P&gt;
&lt;P&gt;The images and lines you see behind the hotspots are just that - images and lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example I have a gutter/fascia object that is a stretchy polyline object.&lt;/P&gt;
&lt;P&gt;To the side I have added a hotspot that can have two positions +75mm &amp;amp; -75mm.&lt;/P&gt;
&lt;P&gt;These then set a boolean parameter to 1 (on) &amp;amp; 0 (off), or in my case a text parameter "On" &amp;amp; "Off".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Turning that parameter "On", or moving the hotspot in plan, then activate a whole bunch of more hotspots that are also on/off or a grid of positions where each position sets a parameter that chooses a different gutter or fascia profile.&lt;/P&gt;
&lt;P&gt;So basically it is just hotspots with set positions, that in turn set the value for other parameters.&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="BarryKelly_2-1702001921368.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/50234i121CA7C586B628CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_2-1702001921368.png" alt="BarryKelly_2-1702001921368.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to be 'cute' I added a picture of a light switch to the on/off hotspots.&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="BarryKelly_1-1702001774208.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/50233i3AE64C756DD7B62B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_1-1702001774208.png" alt="BarryKelly_1-1702001774208.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I can't share the actual object, but if I get some time on the weekend I will try to strip out some of the hotspot scripting and post it here.&lt;/P&gt;
&lt;P&gt;This was done as more of a proof of concept rather than something truly useful.&lt;/P&gt;
&lt;P&gt;I actually just use the graphical user interface more often than this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 02:21:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579404#M6005</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-12-08T02:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579410#M6006</link>
      <description>&lt;P&gt;Yeah, I have done similar things, but only for debugging purposes or as an auto dimension. The issue here is how do you make it so that you do not accidentally show it on the actual drawings?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 04:04:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579410#M6006</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-12-08T04:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579411#M6007</link>
      <description>&lt;P&gt;Thanks for all your feedback guys.&amp;nbsp; I have used rotating and sliding hotspots before as toggles and they work pretty well.&lt;/P&gt;
&lt;P&gt;I was more interested in how you could add text and feedback to those kinds of toggles that is only visible in the 2D view when you are editing a hotspot and does not print.&amp;nbsp; Maybe I am mis-remembering and it was just 2D linework or images that were visible when an 'Edit Mode; parameter in the object&amp;nbsp; was turned on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7331"&gt;@Barry Kelly&lt;/a&gt;&amp;nbsp;- that looks hardcore.&amp;nbsp; Confirming that when those are visible in the 2D view, they would also print on the drawing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am specifically attempting to achieve in this instance is with a ceiling services object, being able to move it's 2D ceiling plan symbol and the 3D geometry separately, but still be able to see the position of the outline of the 3D geometry when you are moving a hotspot, but not have it print on the drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 04:44:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579411#M6007</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2023-12-08T04:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579412#M6008</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/5337"&gt;@scottjm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7331"&gt;@Barry Kelly&lt;/a&gt;&amp;nbsp;- that looks hardcore.&amp;nbsp; Confirming that when those are visible in the 2D view, they would also print on the drawing?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yep, if you can see it it will print.&lt;/P&gt;
&lt;P&gt;You always have to remember to turn it off.&lt;/P&gt;
&lt;P&gt;That is why I prefer the user interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/5337"&gt;@scottjm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What I am specifically attempting to achieve in this instance is with a ceiling services object, being able to move it's 2D ceiling plan symbol and the 3D geometry separately, but still be able to see the position of the outline of the 3D geometry when you are moving a hotspot, but not have it print on the drawing.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Will GLOB_FEEDBACK_MODE help there?&lt;/P&gt;
&lt;P&gt;I use that to draw a RECT2 around the text of an object when I am stretching a hotspot to move the text.&lt;/P&gt;
&lt;P&gt;It is only visible as you are moving the hotspot.&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;LI-CODE lang="markup"&gt;if GLOB_FEEDBACK_MODE = 1 then
	line_type "Solid Line"
	RECT2 -text_wid*0.5,-height*0.5,text_wid*0.5,height*0.5
endif
&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;You would just need to draw something that represents the position of the 3D object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 05:21:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579412#M6008</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-12-08T05:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Scripted 2D Hotspot Editors</title>
      <link>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579414#M6009</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7331"&gt;@Barry Kelly&lt;/a&gt;&amp;nbsp;'s only gone an bloody done it! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That's exactly what I'm looking for!&amp;nbsp; Thank you so much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, for anyone else interest I also looked into using the On-Screen option for Clean Intersections - its an on screen option that people almost never want to turn off, so it could be leveraged as a universal 'Edit mode' toggle.&amp;nbsp; You just have to remember to turn it back on when you switch the layout view though, so not perfect.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;n = REQUEST ("Clean_intersections", "", state)&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;Returns the state of the Clean Wall &amp;amp; Beam Intersections feature (1 when turned on, 0 when off)&lt;/EM&gt;&lt;/P&gt;
&lt;H4 class="programlisting"&gt;&amp;nbsp;&lt;/H4&gt;</description>
      <pubDate>Fri, 08 Dec 2023 06:24:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Custom-Scripted-2D-Hotspot-Editors/m-p/579414#M6009</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2023-12-08T06:24:00Z</dc:date>
    </item>
  </channel>
</rss>

