<?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: Adjustable shower hose in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275029#M5985</link>
    <description>It could be done if you like a bit of maths and you don't mind a very uniform curve to your hose.&lt;BR /&gt;
You would need the centre point and radius of the drape curve which would be based on the distance apart of the inlet and outlet.&lt;BR /&gt;
Then use sin and cos to plot points along the curve for your TUBE.&lt;BR /&gt;
Of course you know the start and end points.&lt;BR /&gt;
&lt;BR /&gt;
I have done it using REVOLVE for the curve and PRISM for the vertical tubes (prism rather than cylinders because you can control visibility of the ends.&lt;BR /&gt;
Again a very uniform curve.&lt;BR /&gt;
&lt;BR /&gt;
The advantage of the TUBE is it would be all one element.&lt;BR /&gt;
I have used a tube for a more natural shape on a bath spout with shower outlet but I did not make it adjustable.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Fri, 07 Apr 2017 03:50:21 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2017-04-07T03:50:21Z</dc:date>
    <item>
      <title>Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275025#M5981</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I need help in figuring out the best way to script a shower hose for a part I’m making (refer attached image). Normally, I would just use the TUBE command; but in this object, the positions for both the hand piece cradle, and the wall connection, are adjustable.&lt;BR /&gt;
&lt;BR /&gt;
I thought the new NURBS suite of commands may help, but after researching a bit, trying to decipher the GDL Reference Guide, and actually trying a couple of commands, I’m not so sure (couldn't get them to work).&lt;BR /&gt;
&lt;BR /&gt;
Any ideas would be appreciated.&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74046i2153403BFFCFE41A/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2017-04-06_7-09-11.jpg" title="2017-04-06_7-09-11.jpg" /&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:32:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275025#M5981</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2017-04-06T20:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275026#M5982</link>
      <description>I would still use the TUBE command.&lt;BR /&gt;
If you are using it now and can move one end then there is no reason why you couldn't make it move the other end as well.&lt;BR /&gt;
&lt;BR /&gt;
The problem either way is that it will change the length of the hose so if it needs to be a set length you will need to adjust all the intermediate path nodes also.&lt;BR /&gt;
If you are not fussy of the length then just adjust the end nodes (and of course the leading and trailing end co-ordinates.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 07 Apr 2017 01:01:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275026#M5982</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-04-07T01:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275027#M5983</link>
      <description>Thanks Barry.  I was aware of those pointers, but that doesn't help with figuring out the drape of the hose.  The wall connection can be higher or lower than the shower head.  It can be close in or further way.  It can be to the left or to the right.&lt;BR /&gt;
&lt;BR /&gt;
What I'm really after is to get a TUBE to follow a NURBS path...but I don't think the new NURBS commands are up to that level of sophistication yet.&lt;BR /&gt;
&lt;BR /&gt;
Do I mention that Revit could do this, or would that just be rude   &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 07 Apr 2017 03:16:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275027#M5983</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2017-04-07T03:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275028#M5984</link>
      <description>Would it be rude to mention that Cadimage have an object on the BIM Components portal that does this?  Or are you trying to duplicate their one with a shower head of your choice? &lt;BR /&gt;
(It does appear to be locked so maybe you don't have access to it)</description>
      <pubDate>Fri, 07 Apr 2017 03:40:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275028#M5984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T03:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275029#M5985</link>
      <description>It could be done if you like a bit of maths and you don't mind a very uniform curve to your hose.&lt;BR /&gt;
You would need the centre point and radius of the drape curve which would be based on the distance apart of the inlet and outlet.&lt;BR /&gt;
Then use sin and cos to plot points along the curve for your TUBE.&lt;BR /&gt;
Of course you know the start and end points.&lt;BR /&gt;
&lt;BR /&gt;
I have done it using REVOLVE for the curve and PRISM for the vertical tubes (prism rather than cylinders because you can control visibility of the ends.&lt;BR /&gt;
Again a very uniform curve.&lt;BR /&gt;
&lt;BR /&gt;
The advantage of the TUBE is it would be all one element.&lt;BR /&gt;
I have used a tube for a more natural shape on a bath spout with shower outlet but I did not make it adjustable.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 07 Apr 2017 03:50:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275029#M5985</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-04-07T03:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275030#M5986</link>
      <description>Cadimage managed it with an irregular curve and stretchy too, so it's possible  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/13212iA159D3858FDCFC05/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Shower.JPG" title="Shower.JPG" /&gt;</description>
      <pubDate>Fri, 07 Apr 2017 04:03:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275030#M5986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T04:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275031#M5987</link>
      <description>@s2art: Not at all - that could be very helpful indeed (but I can't find it). &lt;BR /&gt;
&lt;BR /&gt;
@Barry: Thanks for that.  That gives me a direction for exploration.  Cheers.</description>
      <pubDate>Fri, 07 Apr 2017 04:08:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275031#M5987</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2017-04-07T04:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275032#M5988</link>
      <description>I managed to get it working to my (90%) satisfaction.  The key is using quadratic equations to plot the TUBE points - i.e. it's a parabolic arc.&lt;BR /&gt;
&lt;BR /&gt;
Next time I'll do some research into B Splines, as I think you can better control the smoothness of the curve at the low point.  The parabola is a bit too pointy for a hose.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/16382iC0D5769B020FD222/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2017-04-11_7-30-45.jpg" title="2017-04-11_7-30-45.jpg" /&gt;</description>
      <pubDate>Mon, 10 Apr 2017 21:35:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275032#M5988</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2017-04-10T21:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275033#M5989</link>
      <description>I believe a 'cantenary' curve is more natural.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://en.wikipedia.org/wiki/Catenary" target="_blank"&gt;https://en.wikipedia.org/wiki/Catenary&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Good luck.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 11 Apr 2017 01:50:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275033#M5989</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-04-11T01:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adjustable shower hose</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275034#M5990</link>
      <description>Excellent.  I didn't know the name - that's good to know.  Thanks again Barry.</description>
      <pubDate>Tue, 11 Apr 2017 03:01:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjustable-shower-hose/m-p/275034#M5990</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2017-04-11T03:01:18Z</dc:date>
    </item>
  </channel>
</rss>

