<?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: Streching objects 2 ways from a common origin in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Streching-objects-2-ways-from-a-common-origin/m-p/58151#M41157</link>
    <description>&lt;BLOCKQUOTE&gt;tprokop wrote:&lt;BR /&gt;Is there a way to make an object that can stretch in two directions from a common origin point?  At a 90, the objects uses the A and B codes to stretch each leg, but we would like the objects to work with variable angles.  Any help or suggestions would be appreciated.&lt;/BLOCKQUOTE&gt;

A simple option would be using a parameter like len2, and define at the begining of the script that len2 = A.&lt;BR /&gt;
&lt;BR /&gt;
If you want the object to be stretchable even with the "angular" part, you should then define some "diamond" HOTSPOT, the "new" feature available in AC8 : you'll be able to strech either using the "auto strecth" feature of the A parameter and the scripted "stretchable" part based on HOTSPOT function.&lt;BR /&gt;
&lt;BR /&gt;
You'll then have to use the function explained here : &lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=2712" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... php?t=2712"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=2712&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;

&lt;PRE&gt;IF GLOB_MODPAR_NAME='galq' THEN
   IF galq=30 THEN
      PARAMETERS A=22"
      PARAMETERS ZZYZX=48"
   ENDIF
   IF galq=50 THEN.... &lt;/PRE&gt;

In plain english, this give :&lt;BR /&gt;
IF the last parameter edited was A     then len2 = A&lt;BR /&gt;
IF the last parameter edited was len2 then A     = len2&lt;BR /&gt;
&lt;BR /&gt;
PS : thanks to James Murray for the code &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;</description>
    <pubDate>Mon, 24 May 2004 14:09:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-05-24T14:09:49Z</dc:date>
    <item>
      <title>Streching objects 2 ways from a common origin</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Streching-objects-2-ways-from-a-common-origin/m-p/58150#M41156</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there a way to make an object that can stretch in two directions from a common origin point?  At a 90, the objects uses the A and B codes to stretch each leg, but we would like the objects to work with variable angles.  Any help or suggestions would be appreciated.&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74143i7DB6F424AB1E1B43/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Stretch.jpg" title="Stretch.jpg" /&gt;</description>
      <pubDate>Mon, 24 May 2004 13:49:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Streching-objects-2-ways-from-a-common-origin/m-p/58150#M41156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-05-24T13:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Streching objects 2 ways from a common origin</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Streching-objects-2-ways-from-a-common-origin/m-p/58151#M41157</link>
      <description>&lt;BLOCKQUOTE&gt;tprokop wrote:&lt;BR /&gt;Is there a way to make an object that can stretch in two directions from a common origin point?  At a 90, the objects uses the A and B codes to stretch each leg, but we would like the objects to work with variable angles.  Any help or suggestions would be appreciated.&lt;/BLOCKQUOTE&gt;

A simple option would be using a parameter like len2, and define at the begining of the script that len2 = A.&lt;BR /&gt;
&lt;BR /&gt;
If you want the object to be stretchable even with the "angular" part, you should then define some "diamond" HOTSPOT, the "new" feature available in AC8 : you'll be able to strech either using the "auto strecth" feature of the A parameter and the scripted "stretchable" part based on HOTSPOT function.&lt;BR /&gt;
&lt;BR /&gt;
You'll then have to use the function explained here : &lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=2712" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... php?t=2712"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=2712&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;

&lt;PRE&gt;IF GLOB_MODPAR_NAME='galq' THEN
   IF galq=30 THEN
      PARAMETERS A=22"
      PARAMETERS ZZYZX=48"
   ENDIF
   IF galq=50 THEN.... &lt;/PRE&gt;

In plain english, this give :&lt;BR /&gt;
IF the last parameter edited was A     then len2 = A&lt;BR /&gt;
IF the last parameter edited was len2 then A     = len2&lt;BR /&gt;
&lt;BR /&gt;
PS : thanks to James Murray for the code &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Mon, 24 May 2004 14:09:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Streching-objects-2-ways-from-a-common-origin/m-p/58151#M41157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-05-24T14:09:49Z</dc:date>
    </item>
  </channel>
</rss>

