<?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 Betreff: GDL: TubeA in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-TubeA/m-p/685267#M8133</link>
    <description>&lt;P&gt;Hi Ling, two issues there:&lt;/P&gt;
&lt;P&gt;1) TUBEA, just like regular Tube, want the vectors at start and end, the "ghost points". So you can never have less than 4 path points.&lt;/P&gt;
&lt;P&gt;2) Pipes, as in duct / with a hole, can not be done with the &lt;CODE&gt;4000&lt;/CODE&gt; status on the inside.&amp;nbsp;The larger diameter needs to be stated first, then comes the inside one. The inside – so its recognized as a hole – needs to start with status &lt;CODE&gt;600&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;But that prohibits the use of &lt;CODE&gt;4000&lt;/CODE&gt;. So instead you need to do two half circles, and then go back to the beginning explicitly with a &lt;CODE&gt;-1&lt;/CODE&gt;, so AC knows it's properly closed (that's more of a concern when you do more than one hole but I always found it good practice).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a working example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;inner_rnd = A/2 - RND(A/3)

TUBEA 6, 4, 1+2+16+32,
	0, 0, 900,
	A/2, 360, 4000+1,

	inner_rnd, 0, 601,
	0, 180, 4001,
	0, 180, 4001,
	inner_rnd, 0, -1,

	-1, -1, 0,
	0, 0, 0,
	1, 1, 1,
	2, 2, zzyzx&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I also wonder: why do you want to use TUBEA in the first place? It's not really a ... useful command. I never used it. Only interesting part is that you can use open polylines as the tube cross section which then will be prolonged to z=0.&lt;/P&gt;
&lt;P&gt;Or are you after the fact that the cross section is defined in the miters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy coding!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Nov 2025 17:41:05 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2025-11-28T17:41:05Z</dc:date>
    <item>
      <title>GDL: TubeA</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-TubeA/m-p/685155#M8132</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you use&amp;nbsp;&lt;STRONG&gt;TUBEA&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TUBEA 4, 2, 1+2+16+32,
	0,							0,		900,
	A/2,						360,	4000+1,

	0,							0,		900,
	A/2 + (RND(2)-1) * aMax,	360,	4000+1,

	0,										0,										0,
	omax * sin(RND(987*SYMB_POS_X)%360),	omax * sin(RND(987*SYMB_POS_Y)%360),	zzyzx&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get a "parameter error"...&lt;/P&gt;
&lt;P&gt;I am wanting to create a tube where the polygon at each node varies in size and offset from center.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 02:27:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-TubeA/m-p/685155#M8132</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-11-28T02:27:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: GDL: TubeA</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-TubeA/m-p/685267#M8133</link>
      <description>&lt;P&gt;Hi Ling, two issues there:&lt;/P&gt;
&lt;P&gt;1) TUBEA, just like regular Tube, want the vectors at start and end, the "ghost points". So you can never have less than 4 path points.&lt;/P&gt;
&lt;P&gt;2) Pipes, as in duct / with a hole, can not be done with the &lt;CODE&gt;4000&lt;/CODE&gt; status on the inside.&amp;nbsp;The larger diameter needs to be stated first, then comes the inside one. The inside – so its recognized as a hole – needs to start with status &lt;CODE&gt;600&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;But that prohibits the use of &lt;CODE&gt;4000&lt;/CODE&gt;. So instead you need to do two half circles, and then go back to the beginning explicitly with a &lt;CODE&gt;-1&lt;/CODE&gt;, so AC knows it's properly closed (that's more of a concern when you do more than one hole but I always found it good practice).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a working example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;inner_rnd = A/2 - RND(A/3)

TUBEA 6, 4, 1+2+16+32,
	0, 0, 900,
	A/2, 360, 4000+1,

	inner_rnd, 0, 601,
	0, 180, 4001,
	0, 180, 4001,
	inner_rnd, 0, -1,

	-1, -1, 0,
	0, 0, 0,
	1, 1, 1,
	2, 2, zzyzx&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I also wonder: why do you want to use TUBEA in the first place? It's not really a ... useful command. I never used it. Only interesting part is that you can use open polylines as the tube cross section which then will be prolonged to z=0.&lt;/P&gt;
&lt;P&gt;Or are you after the fact that the cross section is defined in the miters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy coding!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 17:41:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-TubeA/m-p/685267#M8133</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2025-11-28T17:41:05Z</dc:date>
    </item>
    <item>
      <title>Betreff: GDL: TubeA</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-TubeA/m-p/685331#M8135</link>
      <description>&lt;P&gt;I was looking for a tube function in which I could scale each node indepentently, which could be done by redefining the cross section at each path segment. So I was actually just trying to work it out with few nodes before I shifted to using a buffer to build it. I see now that the example is just extending the open polyline down to the local base and closing it. Did not get what that bit of the explaination was talking about. Have not used a &lt;STRONG&gt;TUBE&amp;nbsp;&lt;/STRONG&gt;before, so I had overlooked the note about node count...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try again later with a few more nodes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 01:40:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-TubeA/m-p/685331#M8135</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-12-01T01:40:01Z</dc:date>
    </item>
  </channel>
</rss>

