<?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 Limiting range of hotspot editing in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133711#M19099</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;OK, semi-stupid question: I have a piece od GDL that combines a straight line and an elbow. &lt;BR /&gt;
&lt;BR /&gt;
The overall length is not supposed to be shorter than the elbow radius.&lt;BR /&gt;
&lt;BR /&gt;
So I wrote this piece:
&lt;PRE&gt;101:
IF overall_l &amp;lt; elbowrad THEN
overall_l=elbowrad
ENDIF
RETURN
&lt;/PRE&gt;
...to correct the length so that the object won't get distorted. Either this is not the way to do it, or I'm putting this code in the wrong place, because I can move the hotspot so that the whole thing gets messed up anyway.&lt;BR /&gt;
&lt;BR /&gt;
So, how should I limit the hotspot's range of movement?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/6258iB1E2976F00297CF0/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen shot 2010-11-17 at 9.55.01 AM.png" title="Screen shot 2010-11-17 at 9.55.01 AM.png" /&gt;</description>
    <pubDate>Wed, 17 Nov 2010 15:56:54 GMT</pubDate>
    <dc:creator>matjashka</dc:creator>
    <dc:date>2010-11-17T15:56:54Z</dc:date>
    <item>
      <title>Limiting range of hotspot editing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133711#M19099</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;OK, semi-stupid question: I have a piece od GDL that combines a straight line and an elbow. &lt;BR /&gt;
&lt;BR /&gt;
The overall length is not supposed to be shorter than the elbow radius.&lt;BR /&gt;
&lt;BR /&gt;
So I wrote this piece:
&lt;PRE&gt;101:
IF overall_l &amp;lt; elbowrad THEN
overall_l=elbowrad
ENDIF
RETURN
&lt;/PRE&gt;
...to correct the length so that the object won't get distorted. Either this is not the way to do it, or I'm putting this code in the wrong place, because I can move the hotspot so that the whole thing gets messed up anyway.&lt;BR /&gt;
&lt;BR /&gt;
So, how should I limit the hotspot's range of movement?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/6258iB1E2976F00297CF0/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen shot 2010-11-17 at 9.55.01 AM.png" title="Screen shot 2010-11-17 at 9.55.01 AM.png" /&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:56:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133711#M19099</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2010-11-17T15:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting range of hotspot editing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133712#M19100</link>
      <description>Try this in parameters script:&lt;BR /&gt;

&lt;PRE&gt;IF overall_l &amp;lt; elbowrad THEN
  overall_l=elbowrad
  PARAMETERS overall_l=overall_l
  ENDIF &lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Nov 2010 21:13:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133712#M19100</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2010-11-17T21:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting range of hotspot editing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133713#M19101</link>
      <description>Thank you. &lt;BR /&gt;
I placed this script in the Parameter Script section, but this generates an error in the object beyond the minimum point (only dot is shown on the plan). Is there any special way I must call this script?</description>
      <pubDate>Wed, 17 Nov 2010 21:29:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133713#M19101</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2010-11-17T21:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting range of hotspot editing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133714#M19102</link>
      <description>I thought overall... is a valid parameter. Can you post the complete script or the parameter list.&lt;BR /&gt;
&lt;BR /&gt;
Not clear, where your shape is messed up.</description>
      <pubDate>Thu, 18 Nov 2010 00:36:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133714#M19102</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2010-11-18T00:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting range of hotspot editing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133715#M19103</link>
      <description>You could also do this with a VALUES statement in the parameter script. Something like &lt;PRE&gt;VALUES "overall_l" RANGE[0, elbowrad)&lt;/PRE&gt;

I prefer this as it limits the range of movement when the hotspot is adjusted rather than just snapping back to the default over run value.  To me this is better user feedback.</description>
      <pubDate>Thu, 18 Nov 2010 04:35:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133715#M19103</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2010-11-18T04:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting range of hotspot editing</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133716#M19104</link>
      <description>Thank you both guys.&lt;BR /&gt;
The "reset" script is actually valid. The key was &lt;B&gt;adding some extra length to the minimum&lt;/B&gt;, because I failed to acknowledge that certain values could not be zero. I searched through some Graphisoft objects and saw how the range[n,&lt;B&gt;p&lt;/B&gt;] was used. But still I had to add some length to the minimum limit (1/4" in my case). Undefined "&lt;B&gt;p&lt;/B&gt;" means "infinity" I guess.&lt;BR /&gt;
&lt;BR /&gt;
So, this actually works:
&lt;PRE&gt;values "return_type" `Simple U`, `Square U`, `Simple L`, `Square L`

values "overall_l" range[elbowrad+0.25",]

IF return_type=`Square U` THEN
values "wd" range[elbowrad*2+0.25",]
ENDIF

IF return_type=`Square L` THEN
values "wd" range[elbowrad+0.25",]
ENDIF
&lt;/PRE&gt;

Below is the object that I plan to use as a simple fully parametric railing return solution, which I always had to put together from basic solids.&lt;BR /&gt;
&lt;BR /&gt;
Thank you again!&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/17569iC96BE6EEC2F574D9/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen shot 2010-11-17 at 10.48.15 AM.png" title="Screen shot 2010-11-17 at 10.48.15 AM.png" /&gt;</description>
      <pubDate>Thu, 18 Nov 2010 15:13:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Limiting-range-of-hotspot-editing/m-p/133716#M19104</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2010-11-18T15:13:01Z</dc:date>
    </item>
  </channel>
</rss>

