<?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: Object Origin Keeps Moving in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38413#M40278</link>
    <description>Jay,&lt;BR /&gt;
&lt;BR /&gt;
To fix your specific problem try this:&lt;BR /&gt;
&lt;BR /&gt;
IF A &amp;lt; 30" THEN A = 30"&lt;BR /&gt;
PARAMETERS A = A&lt;BR /&gt;
&lt;BR /&gt;
Or/And...&lt;BR /&gt;
&lt;BR /&gt;
IF A &amp;lt; ada_min THEN A = ada_min &lt;BR /&gt;
PARAMETERS A = A&lt;BR /&gt;
&lt;BR /&gt;
Be sure this is in the "Master Script"</description>
    <pubDate>Wed, 26 May 2004 16:14:10 GMT</pubDate>
    <dc:creator>David Larrew</dc:creator>
    <dc:date>2004-05-26T16:14:10Z</dc:date>
    <item>
      <title>Object Origin Keeps Moving</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38408#M40273</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have written an object in which the lower-left corner is the anchor for the object.  Using hotspots on the top and right, you can stretch it in the X or Y directions on the floor plan.  However, I set limits on how small the object can be stretched with code lines such as the following:&lt;BR /&gt;
&lt;BR /&gt;
  IF A &amp;lt; 30" THEN PARAMETERS A = 30"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Whenever this line kicks in, the object resizes, but it moves the lower left corner, keeping the position of the hotspot that was dragged.  How can I lock the position of the lower left corner?  I only want that corner to move if the user explicitly selects its hotspot.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Apr 2004 21:48:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38408#M40273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-27T21:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Object Origin Keeps Moving</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38409#M40274</link>
      <description>Jay,&lt;BR /&gt;
Is there a particular reason you want to use the "Parametes" command?&lt;BR /&gt;
Wouldn't writing in the Master Script  if A&amp;lt;30" then A=30" do the job?&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 28 Apr 2004 00:00:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38409#M40274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-28T00:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Object Origin Keeps Moving</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38410#M40275</link>
      <description>Try using the RANGE setting. Such as:&lt;BR /&gt;
&lt;BR /&gt;
VALUES `A` RANGE [30, 1000)&lt;BR /&gt;
&lt;BR /&gt;
This has the cool effect of snapping automatically to permitted values. It's fun to play with and actually pretty useful too.</description>
      <pubDate>Wed, 28 Apr 2004 00:06:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38410#M40275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-28T00:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Object Origin Keeps Moving</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38411#M40276</link>
      <description>Jay,&lt;BR /&gt;
Matthew is right the "values" command does the job.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 28 Apr 2004 01:06:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38411#M40276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-28T01:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Object Origin Keeps Moving</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38412#M40277</link>
      <description>&lt;BLOCKQUOTE&gt;Matthew wrote:&lt;BR /&gt;Try using the RANGE setting. Such as:&lt;BR /&gt;
&lt;BR /&gt;
VALUES `A` RANGE [30, 1000)&lt;/BLOCKQUOTE&gt;

Not quite what I was looking for.  Perhaps a better explanation of what I'm trying to do.&lt;BR /&gt;
&lt;BR /&gt;
The GDL I'm building will draw restroom stalls that conform to ADA.  If you stretch the object in the A direction, you get more stalls and/or urinals.  I want to keep people from stretching it smaller than an ADA compliant stall.  So I used the simple statement "IF A &amp;lt; ada_min THEN PARAMETERS A = ada_min".  Unfortunately, when this line of code executes it doesn't reposition the hotspot I was just dragging, it moves everything else (see graphic).&lt;BR /&gt;
&lt;BR /&gt;
How can I get the hotspot labeled "H1" to stay where it is unless it is the hotspot being edited?</description>
      <pubDate>Wed, 28 Apr 2004 15:23:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38412#M40277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-28T15:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Object Origin Keeps Moving</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38413#M40278</link>
      <description>Jay,&lt;BR /&gt;
&lt;BR /&gt;
To fix your specific problem try this:&lt;BR /&gt;
&lt;BR /&gt;
IF A &amp;lt; 30" THEN A = 30"&lt;BR /&gt;
PARAMETERS A = A&lt;BR /&gt;
&lt;BR /&gt;
Or/And...&lt;BR /&gt;
&lt;BR /&gt;
IF A &amp;lt; ada_min THEN A = ada_min &lt;BR /&gt;
PARAMETERS A = A&lt;BR /&gt;
&lt;BR /&gt;
Be sure this is in the "Master Script"</description>
      <pubDate>Wed, 26 May 2004 16:14:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38413#M40278</guid>
      <dc:creator>David Larrew</dc:creator>
      <dc:date>2004-05-26T16:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Object Origin Keeps Moving</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38414#M40279</link>
      <description>I think you will have problems as long as you use the &lt;B&gt;A&lt;/B&gt; parameter. ArchiCAD automatically adjusts the overall part based on A and B values and assumes that the last place the user clicks is important (not a mistake). If I am wrong, I would love to know how to control this.&lt;BR /&gt;
&lt;BR /&gt;
You can get the result you want with an active hotspot (the diamond shaped type programed into the GDL).</description>
      <pubDate>Wed, 26 May 2004 16:26:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Object-Origin-Keeps-Moving/m-p/38414#M40279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-05-26T16:26:30Z</dc:date>
    </item>
  </channel>
</rss>

