<?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: Was Stretchy, Now It's Not in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104926#M38650</link>
    <description>Not positive this is the answer, but just something of note.  The "A" value is modified (divided by 2).  By using just the base "A", the point will be stretchable, but when the number is modified is when the stretchability goes.</description>
    <pubDate>Tue, 08 Feb 2005 17:28:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-02-08T17:28:17Z</dc:date>
    <item>
      <title>Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104921#M38645</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;In an earlier version of the code shown below, you could stretch length A using one or the other of the hotspots shown in &lt;FONT color="red"&gt;red&lt;/FONT&gt;.  In the process of making a few changes, this functionality went away.  I have tried everything I can think of to get it back.  I didn't program this behavior in the first place, it just worked.  Help!&lt;BR /&gt;
&lt;BR /&gt;
100:  !!DEFINE TEXT STYLE&lt;BR /&gt;
DEFINE STYLE "AC_STYLE_1" pTextFont, pTextSize / 2.54, 5, 0&lt;BR /&gt;
SET STYLE "AC_STYLE_1"&lt;BR /&gt;
&lt;BR /&gt;
110:  !!DRAW GRID LINE AND HOTSPOTS&lt;BR /&gt;
PEN pLinePen&lt;BR /&gt;
LINE_TYPE pLineType&lt;BR /&gt;
HOTSPOT2 0, 0&lt;BR /&gt;
&lt;FONT color="red"&gt;HOTSPOT2 0, A / 2&lt;BR /&gt;
HOTSPOT2 0, -A / 2&lt;/FONT&gt;&lt;BR /&gt;
LINE2 0, -A / 2, 0, A / 2&lt;BR /&gt;
HOTLINE2 0, -A / 2, 0, A / 2&lt;BR /&gt;
&lt;BR /&gt;
120:  !!ADD FIRST BUBBLE&lt;BR /&gt;
ADD2 0, A / 2 + (pBubSize * GLOB_SCALE)&lt;BR /&gt;
GOSUB 200&lt;BR /&gt;
DEL 1&lt;BR /&gt;
&lt;BR /&gt;
130:  !!ADD SECOND BUBBLE IF REQUIRED&lt;BR /&gt;
IF pBubLoc = `Both Ends` THEN&lt;BR /&gt;
  ADD2 0, -A / 2 - (pBubSize * GLOB_SCALE)&lt;BR /&gt;
  GOSUB 200&lt;BR /&gt;
  DEL 1&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
BODY -1&lt;BR /&gt;
END&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
200: !!BUBBLE&lt;BR /&gt;
LINE_TYPE pBubLineType&lt;BR /&gt;
PEN pTextPen&lt;BR /&gt;
ROT2 -SYMB_ROTANGLE&lt;BR /&gt;
TEXT2 0, 0, pBubNum&lt;BR /&gt;
DEL 1&lt;BR /&gt;
PEN pBubPen&lt;BR /&gt;
CIRCLE2  0, 0, pBubSize * GLOB_SCALE&lt;BR /&gt;
HOTARC2  0, 0, pBubSize * GLOB_SCALE, 0, 360&lt;BR /&gt;
HOTSPOT2 0,0&lt;BR /&gt;
HOTSPOT2 0,pBubSize * GLOB_SCALE&lt;BR /&gt;
HOTSPOT2 0,-pBubSize * GLOB_SCALE&lt;BR /&gt;
HOTSPOT2 pBubSize * GLOB_SCALE,0&lt;BR /&gt;
HOTSPOT2 -pBubSize * GLOB_SCALE,0&lt;BR /&gt;
RETURN&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 29 Jan 2005 21:17:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104921#M38645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-29T21:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104922#M38646</link>
      <description>What exactly did you change? &lt;BR /&gt;
 &lt;BR /&gt;
I put a vertical line using a in Archicad 8 &amp;amp; 9 and it didn't stretch, if you use 'b' it does (or use 'a' horizontally).  I think if you change all your a's to b's you will be fine. &lt;BR /&gt;
 &lt;BR /&gt;
Julia</description>
      <pubDate>Mon, 31 Jan 2005 11:00:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104922#M38646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-31T11:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104923#M38647</link>
      <description>&lt;BLOCKQUOTE&gt;Julia wrote:&lt;BR /&gt;What exactly did you change? &lt;/BLOCKQUOTE&gt;

That's a good question.  I changed a lot of non-stretchy stuff before I noticed that the stretching ability had disappeared.  When it was stretchy, I was still only using A's.</description>
      <pubDate>Mon, 31 Jan 2005 15:24:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104923#M38647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-31T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104924#M38648</link>
      <description>What was your last version where the line was stretchy? Have you looked atgraphical editing in AC 9.0?&lt;BR /&gt;
&lt;BR /&gt;
Just a thought.</description>
      <pubDate>Tue, 01 Feb 2005 02:06:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104924#M38648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-01T02:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104925#M38649</link>
      <description>Did you put the HS &lt;B&gt;before&lt;/B&gt; the rest?&lt;BR /&gt;
You have to put the bounding strechable hotspot at the top of the 2d script...&lt;BR /&gt;
&lt;BR /&gt;
PWD</description>
      <pubDate>Tue, 08 Feb 2005 08:46:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104925#M38649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-08T08:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104926#M38650</link>
      <description>Not positive this is the answer, but just something of note.  The "A" value is modified (divided by 2).  By using just the base "A", the point will be stretchable, but when the number is modified is when the stretchability goes.</description>
      <pubDate>Tue, 08 Feb 2005 17:28:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104926#M38650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-08T17:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104927#M38651</link>
      <description>Tom,&lt;BR /&gt;
I think you are correct.&lt;BR /&gt;
I believe I can verify that when the value of A or B is modified in the script arithmetically, the object is no longer stretchy along the axis&lt;BR /&gt;
that has been modified.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Tue, 08 Feb 2005 21:44:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104927#M38651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-08T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104928#M38652</link>
      <description>&lt;BLOCKQUOTE&gt;tprokop wrote:&lt;BR /&gt;Not positive this is the answer, but just something of note.  The "A" value is modified (divided by 2).  By using just the base "A", the point will be stretchable, but when the number is modified is when the stretchability goes.&lt;/BLOCKQUOTE&gt;

The "A" value itself is not being modified (that requires a PARAMETERS statement). The distance between the hotspots is being derived from the value of A and this generally works just fine.&lt;BR /&gt;
&lt;BR /&gt;
The object will stretch between any two hotspots that are separated by a distance that matches the value of A or B in the associated direction(s).&lt;BR /&gt;
&lt;BR /&gt;
It is possible that dividing by 2 has introduced some very tiny rounding error so that the sum of A/2 + A/2 is returning a value slightly different than A. Try changing to A*0.5 and see if this helps.&lt;BR /&gt;
&lt;BR /&gt;
It is generally better to multiply by a reciprocal value than to divide by a constant. Multiplication is simple arithmetic, whereas division is handled as a transcendental function. I only use division when the divisor is a variable for this reason.</description>
      <pubDate>Wed, 09 Feb 2005 18:44:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104928#M38652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-09T18:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104929#M38653</link>
      <description>Matthew,&lt;BR /&gt;
Just as a test, I made the simplest of objects to test whether&lt;BR /&gt;
modifying A or B arithmetically would disable stretchiness.&lt;BR /&gt;
&lt;BR /&gt;
One POLY2_A command with four HOTSPOT2 s at the corners.&lt;BR /&gt;
The object stretches in both axes.&lt;BR /&gt;
At the beginning of the script, insert the statement B=B*2 (no division).&lt;BR /&gt;
Now the object no longer stretches along the B axis.&lt;BR /&gt;
&lt;BR /&gt;
Does this deal with your observation about division and rounding errors ?&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 09 Feb 2005 19:30:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104929#M38653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-09T19:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104930#M38654</link>
      <description>Just to verify for myself, I tried a little test:
&lt;PRE&gt;rect2 0,0,a,b
rect2 0,0,a*.5,b*.5
hotspot2 0,0
hotspot2 a*.5,b*.5
hotspot2 a,b&lt;/PRE&gt;

The object stretches from the second (a,b) hotspot, but not the first.  I think the limitation comes from "a*.5" not being equal to "a" and not from the division.  By moving the "a*.5" location, it would force the value of "a" to be modified, which seems to be the restriction.</description>
      <pubDate>Thu, 10 Feb 2005 17:39:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104930#M38654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-10T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104931#M38655</link>
      <description>Matthew stated the way it works. When you grab any hotspot, ArchiCAD checks whether there is any hotspots in the Object that is at a distance of A in the horizontal direction. If there is any, the object will be stretchable in the horizontal direction.&lt;BR /&gt;
Similarly, it checks whether there is any hotspots in the Object that is at a distance of B in the vertical direction. If there is any, the object will be stretchable in the vertical direction.&lt;BR /&gt;
&lt;BR /&gt;
If you add another hotspot:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#009aff"&gt;rect2 0,0,a,b&lt;BR /&gt;
rect2 0,0,a*.5,b*.5&lt;BR /&gt;
hotspot2 0,0&lt;BR /&gt;
hotspot2 a*.5,b*.5&lt;BR /&gt;
hotspot2 a,b&lt;BR /&gt;
hotspot2 -a*.5,-b*.5&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
then the hotspot at a*.5,b*.5 will also be stretchable in both directions.&lt;BR /&gt;
&lt;BR /&gt;
But if you do the the following:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#009aff"&gt;rect2 0,0,a,b&lt;BR /&gt;
rect2 0,0,a*.5,b*.5&lt;BR /&gt;
hotspot2 0,0&lt;BR /&gt;
hotspot2 a*.5,b*.5&lt;BR /&gt;
hotspot2 a,b&lt;BR /&gt;
hotspot2 -a*.5,b*.5&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
the hotspot at a*.5,b*.5 will be stretchable only in the horizontal direction as there is another hotspot that is at a distance of A in the horizontal direction (-a*.5,b*.5), but there is no other hotspot that is at a distance of B in the vertical direction.</description>
      <pubDate>Fri, 11 Feb 2005 10:28:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104931#M38655</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2005-02-11T10:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Was Stretchy, Now It's Not</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104932#M38656</link>
      <description>Thanks for the information on adding the additional hotspot.  I was unaware of the effect it would have.  So, basically, in order to have multiple strechable points based on "A", it requires more than 2 hotspots. &lt;BR /&gt;
&lt;BR /&gt;
I have been using the diamond spots for strechable points, but this may be a simpler approach for some of the objects I'm working with.</description>
      <pubDate>Fri, 11 Feb 2005 17:57:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Was-Stretchy-Now-It-s-Not/m-p/104932#M38656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-11T17:57:21Z</dc:date>
    </item>
  </channel>
</rss>

