<?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: Swining Bridge in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29666#M35670</link>
    <description>I ended up going the trussmaker route and using solid element operations.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/18955iEDD6D54AADCB9FA9/image-size/large?v=v2&amp;amp;px=999" border="0" alt="sb.jpg" title="sb.jpg" /&gt;</description>
    <pubDate>Wed, 10 Aug 2005 14:12:12 GMT</pubDate>
    <dc:creator>Red</dc:creator>
    <dc:date>2005-08-10T14:12:12Z</dc:date>
    <item>
      <title>Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29659#M35663</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is it possible to script a tube/cylinder to be 30’ long and sag down in the mid 2’? What I’m using it for is a swinging bridge. Or is there a better way to achieve this?&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74146iDDBACB9150EA92F8/image-size/large?v=v2&amp;amp;px=999" border="0" alt="sb.jpg" title="sb.jpg" /&gt;</description>
      <pubDate>Tue, 09 Aug 2005 20:50:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29659#M35663</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2005-08-09T20:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29660#M35664</link>
      <description>Have you ever used the tube-command? This should work with a calculated path for the tube.</description>
      <pubDate>Wed, 10 Aug 2005 06:40:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29660#M35664</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-10T06:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29661#M35665</link>
      <description>I gave it a try. See attached object.&lt;BR /&gt;
&lt;BR /&gt;
The solution is TUBE indeed. The shape is a cylind, the path is a parable, as we know at least since Antonio Gaudi. Which order is the most real I don't know, but I took (for not doing too much math) the second order:&lt;BR /&gt;
&lt;BR /&gt;
y = aa * x^2&lt;BR /&gt;
&lt;BR /&gt;
By knowing 2 Points (left and right hight L and R) and their distance (width of object A) you can calculate the factor aa by:&lt;BR /&gt;
&lt;BR /&gt;
aa= R / ( (A*SQR(R/L)/(1+SQR(R/L) )^2&lt;BR /&gt;
&lt;BR /&gt;
P.S. For getting a feeling to the system of the parable I found a nice link:&lt;BR /&gt;
&lt;A href="http://www.arndt-bruenner.de/mathe/10/parabeldurchdreipunkte.htm" target="_blank"&gt;Parable calculation&lt;/A&gt;</description>
      <pubDate>Wed, 10 Aug 2005 08:41:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29661#M35665</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-10T08:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29662#M35666</link>
      <description>you could also make it very easily using trussmaker&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
bill</description>
      <pubDate>Wed, 10 Aug 2005 09:33:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29662#M35666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-10T09:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29663#M35667</link>
      <description>Thanks to you both. I will try your part out. Also I never thought about trussmaker!  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 10 Aug 2005 11:57:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29663#M35667</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2005-08-10T11:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29664#M35668</link>
      <description>... or you can also try the profiler, but hen you have to draw the parabel by yourselve, what is not easy without gdl (same problem with trussmaker). &lt;BR /&gt;
&lt;BR /&gt;
and gdl is much more elegant!&lt;BR /&gt;
&lt;BR /&gt;
@ F.Beister:&lt;BR /&gt;
if I remember right, the form of the parabel depends also on the weight of the cable (kg/m) (and G of course). this may be a more or less useful addition to your nice gdl!&lt;BR /&gt;
a further idea: the parabel calculation could be also used inside the tentmaker object. perhaps a little more realistic than sin/cos method, but in most cases this will not be recognized. &lt;BR /&gt;
&lt;BR /&gt;
best regards!</description>
      <pubDate>Wed, 10 Aug 2005 13:22:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29664#M35668</guid>
      <dc:creator>gerd</dc:creator>
      <dc:date>2005-08-10T13:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29665#M35669</link>
      <description>Hello Gerd.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;if I remember right, the form of the parabel depends also on the weight of the cable (kg/m) (and G of course). this may be a more or less useful addition to your nice gdl! &lt;/BLOCKQUOTE&gt;

Formulas. Give me formulas &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; Or a link to the physics.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;a further idea: the parabel calculation could be also used inside the tentmaker object. perhaps a little more realistic than sin/cos method, but in most cases this will not be recognized.&lt;/BLOCKQUOTE&gt;

Thats right. SIN/COS is not the kings way. I have seen this and discussed with zzyzx, I think you know him by the german talk. Tentmaker is nice and was pretty improved by the users. The single working object in the spirit of openGDL. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt; But it has limited options, because it creates the surface by its border. &lt;BR /&gt;
&lt;BR /&gt;
I have started an object, which draws a mesh with caculated hights by primitives. If I can solve some basic problems it will be possible to have some points inside the tent/surface to risen it. Splines are nothing else than quadric equations by a higher order. I have a link to a solution in 2D, but still missing the transfer to 3D. It is my aim to make curved surfaces, parametric and with moveable hotspots.</description>
      <pubDate>Wed, 10 Aug 2005 13:43:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29665#M35669</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-10T13:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29666#M35670</link>
      <description>I ended up going the trussmaker route and using solid element operations.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/18955iEDD6D54AADCB9FA9/image-size/large?v=v2&amp;amp;px=999" border="0" alt="sb.jpg" title="sb.jpg" /&gt;</description>
      <pubDate>Wed, 10 Aug 2005 14:12:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29666#M35670</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2005-08-10T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29667#M35671</link>
      <description>i'm pretty sure that the shape of the parabola does not depend on the weight of the cable&lt;BR /&gt;
&lt;BR /&gt;
otherwise the inverted models that Gaudi made from chains (i think) to calculate the most efficient structure for Sagrada Familia wouldn't have worked&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
bill</description>
      <pubDate>Wed, 10 Aug 2005 16:31:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29667#M35671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-10T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29668#M35672</link>
      <description>Truthfully is model will be imported into 3d max to be tweaked and then it’s going into a Battlefield 2 Mod.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; I will forever be a gamer.</description>
      <pubDate>Wed, 10 Aug 2005 17:05:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29668#M35672</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2005-08-10T17:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29669#M35673</link>
      <description>Isn't the curve that a bridge of this type forms a catenary ?&lt;BR /&gt;
I have heard that the mathematical description of the catenary curve&lt;BR /&gt;
involves hyperbolic trig functions.&lt;BR /&gt;
There was a discussion several years ago about how to script&lt;BR /&gt;
this curve in GDL which does not have hyperbolic functions.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 10 Aug 2005 19:15:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29669#M35673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-10T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29670#M35674</link>
      <description>you're right&lt;BR /&gt;
&lt;BR /&gt;
catenary&lt;BR /&gt;
&lt;BR /&gt;
for anyone that's interested...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://en.wikipedia.org/wiki/Catenary" target="_blank"&gt;http://en.wikipedia.org/wiki/Catenary&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
bill</description>
      <pubDate>Wed, 10 Aug 2005 19:43:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29670#M35674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-10T19:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29671#M35675</link>
      <description>OK. We don't have a hyperbolic cosine, but there's a substitution. See &lt;A href="http://en.wikipedia.org/wiki/Hyperbolic_function" target="_blank"&gt;Hyperbolic function&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
I see, I will think about it again.&lt;BR /&gt;
&lt;BR /&gt;
EDIT:&lt;BR /&gt;
I know it's in german, but the java-applet is eye opening:&lt;BR /&gt;
&lt;A href="http://www.arndt-bruenner.de/mathe/java/kettenlinie.htm" target="_blank"&gt;http://www.arndt-bruenner.de/mathe/java/kettenlinie.htm&lt;/A&gt;</description>
      <pubDate>Wed, 10 Aug 2005 21:01:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29671#M35675</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-10T21:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29672#M35676</link>
      <description>Frank,&lt;BR /&gt;
I just went to Yahoo Groups GDL Talk and did a search for "catenary"&lt;BR /&gt;
and found the discussion I mentioned before. It was two years ago and&lt;BR /&gt;
DNC was working on how to script a chain object.&lt;BR /&gt;
The thread might give you some info you could use.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Fri, 12 Aug 2005 04:12:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29672#M35676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-12T04:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29673#M35677</link>
      <description>Thanks Peter,&lt;BR /&gt;
&lt;BR /&gt;
tonight I integrated the formula of the german math site and it works, but as in your mentioned thread the main point is the defining of the parameter a. I haven't found a solution for the right value to get a defined apex point.&lt;BR /&gt;
But maybe it's not unsolveable. All discussions I read to this issue took a given rope of a certain lenght and tried calculate the line. But the length isn't a parameter I'm interested in, the value of sagging is defining my line. For the lenght-bounded calculation it isn't trivial to find the correct parable either. Mr. Bruenner writes there is nothing less to solve the following formula for a:&lt;BR /&gt;
L=(-dx·ln((SQR(a2·dx^4+2·a·dx^2·dy+dx^2+dy^2)-a·dx^2-dy)·(SQR(a^2·dx^4-2·a·dx^2·dy+dx^2+dy^2)-a·dx^2+dy)/dx^2)/(4·a)+(a·dx^2-dy)·SQR(a^2·dx^4-2·a·dx^2·dy+dx^2+dy^2)/(4·a·dx)+sqr(a^2·dx^4+2·a·dx^2·dy+dx^2+dy^2)·(dy/(4·a·dx)+dx/4))/dx&lt;BR /&gt;
I have contacted the author of the site. Maybe he can help. He is a math teacher and speaks german, what is not bad in this case. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
As far as I will have something usable, I will post it.&lt;BR /&gt;
&lt;BR /&gt;
... to be continued.</description>
      <pubDate>Fri, 12 Aug 2005 07:18:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29673#M35677</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-12T07:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29674#M35678</link>
      <description>just to make it a little less easy:  &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
I have read a little in some webpages about structure analysis: the weight of the cable (and also g) doesn't influence the form of the catenary directly. but: most cables are elastic, so it normally gets longer if the load gets higher. &lt;BR /&gt;
&lt;BR /&gt;
but I think, in a first step we should ignore this... &lt;BR /&gt;
it will be not important, if the points of suspension and the sagging are the parameters, then only the original length of cable to reach the planned geometry is different. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
best regards, gerd</description>
      <pubDate>Fri, 12 Aug 2005 08:40:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29674#M35678</guid>
      <dc:creator>gerd</dc:creator>
      <dc:date>2005-08-12T08:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29675#M35679</link>
      <description>&lt;BLOCKQUOTE&gt;but I think, in a first step we should ignore this... &lt;/BLOCKQUOTE&gt;&lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; you have a good day, isn't it? Ahhh... friday, I see. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 12 Aug 2005 08:44:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29675#M35679</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-12T08:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29676#M35680</link>
      <description>Here comes a not stable working first result. For certain flat or small cables there is still a "negative argument in logaritm" error. It can't be worked around. Its still a bug.&lt;BR /&gt;
&lt;BR /&gt;
The formula is integrated and a raw aprroximation loop for the factor "a" is implemented. You can switch on to show the approximation curve for the value. It shows the difference of sagging.&lt;BR /&gt;
Now I have found a math lesson-pdf with a proper working approximation algorithm. I will give it a try later.&lt;BR /&gt;
&lt;BR /&gt;
EDIT: Old version deleted. See next posting for newer one.</description>
      <pubDate>Mon, 15 Aug 2005 14:40:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29676#M35680</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-15T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29677#M35681</link>
      <description>Here are two final versions: One for AC7 and one for AC8.1+ with moveable hotspots. You can show a side view of the cable/rope in floor plan to adjust construction. To compare with a 'simple' parable you can show its graph in 2D/3D too.&lt;BR /&gt;
I have implemented two iteration algorithm: bisection and regula falsi. Bisection is faster under the (adjustable) tolreance than regula falsi, which needs sometimes the maximum of allowed iteration steps (# of steps can be printed) and keeps above. The approximation curve, which can be made visible, is the aberration of the aproxximated sagging to aim, depending of the factor a in the catenary formula.&lt;BR /&gt;
&lt;BR /&gt;
[No proof for correctness or no data loss in case of endless loops.]&lt;BR /&gt;
If it's in practical use, it woud be nice to get a pict.&lt;BR /&gt;
&lt;BR /&gt;
@gerd&lt;BR /&gt;
Yes, it's possible to integrate it into a net like tentmaker does. Easiest way would be to take the COONS statement with four catenary lines around, but this will only sag in one direction (z). The top view is again a quadrangle. One could combine it (e.g. f(x)*g(x)) with a "sagging" in x/y, but this would not be a realistic or physical correct line for shure. And without this the effort to approximate against a hyperbolic cosine makes not really sense. Then it will be better to use a spline.</description>
      <pubDate>Tue, 16 Aug 2005 14:18:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29677#M35681</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-16T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Swining Bridge</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29678#M35682</link>
      <description>Frank,&lt;BR /&gt;
I just downloaded the catenary library part and opened the scripts.&lt;BR /&gt;
That is one awesome piece of GDL scripting.&lt;BR /&gt;
&lt;BR /&gt;
I am having a great time playing around with the settings.&lt;BR /&gt;
&lt;BR /&gt;
I checked script in the 3D script and got an error when&lt;BR /&gt;
"show curve + alternate" is checked.&lt;BR /&gt;
The error was zzyxz is not a valid parameter at line .... (notice zzyzx is misspelled)&lt;BR /&gt;
Easy to fix of course.&lt;BR /&gt;
I have to check but I did not know that Archicad warns you when&lt;BR /&gt;
an un-initialized variable is encountered in the script. At least in the&lt;BR /&gt;
past, I thought AC just assigned a zero value in such  situations and&lt;BR /&gt;
did not warn.&lt;BR /&gt;
&lt;BR /&gt;
Now all I have to do is figure out how to "GET" the path for the parabola&lt;BR /&gt;
and your object will draw not only a catenary but a parabola in 3D.&lt;BR /&gt;
&lt;BR /&gt;
Wonderful object, thank you.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Thu, 18 Aug 2005 01:13:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Swining-Bridge/m-p/29678#M35682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-18T01:13:25Z</dc:date>
    </item>
  </channel>
</rss>

