<?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: GDL beginners question in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206704#M12251</link>
    <description>Take a look at the Operators section of the GDL Reference Guide that is located in your help menu in ArchiCAD. It will give you these basic operators as well as those that are a bit more obtuse. In the US version this section is on page 261 for the ArchiCAD 18 version. It should be somewhere near that point in your copy.</description>
    <pubDate>Thu, 04 Sep 2014 03:30:44 GMT</pubDate>
    <dc:creator>Erich</dc:creator>
    <dc:date>2014-09-04T03:30:44Z</dc:date>
    <item>
      <title>GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206701#M12248</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm trying to learn something about GDL script, because I want to make my own objects parametric.&lt;BR /&gt;
Therefore I studied the cookbook 4 chair example of the beginners guide.&lt;BR /&gt;
I build a chair in metric according to the manual, but when it comes to making everything parametric I get lost, because of the strange variable of the legs of the chair. The legs are made of the cone.&lt;BR /&gt;
Leg diamater = lsec&lt;BR /&gt;
But what means lsec/3, lsec/2 and I even saw somewhere lsec/8.&lt;BR /&gt;
Can somebody explane to me the meaning of the numbers and the /&lt;BR /&gt;
Thanks in advance&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Sep 2014 17:40:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206701#M12248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginnersquestion</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206702#M12249</link>
      <description>lsec is your parametric variable. The "/" just indicates the math division operation and the numbers are the denominators. So lsec/2 is just half the values of the variable lsec and lsec/3 is one third. &lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Wed, 03 Sep 2014 20:54:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206702#M12249</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2014-09-03T20:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206703#M12250</link>
      <description>And '*' (asterisk) is multiplication if ever you see that.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 04 Sep 2014 01:52:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206703#M12250</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2014-09-04T01:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206704#M12251</link>
      <description>Take a look at the Operators section of the GDL Reference Guide that is located in your help menu in ArchiCAD. It will give you these basic operators as well as those that are a bit more obtuse. In the US version this section is on page 261 for the ArchiCAD 18 version. It should be somewhere near that point in your copy.</description>
      <pubDate>Thu, 04 Sep 2014 03:30:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206704#M12251</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2014-09-04T03:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206705#M12252</link>
      <description>Thank you Erich and Barry for the explanation.&lt;BR /&gt;
But why must I divide in three or two parts?&lt;BR /&gt;
Because before I could take the parametric step, I wrote the script of the chair with cone and block and the dimensions on the X, Y and Z.&lt;BR /&gt;
CONE 0.5,0.015,0.03,90,90 and the leg was there.&lt;BR /&gt;
Now I must make this parametric, and then I don't get it anymore&lt;BR /&gt;
CONE sthit,lsec/3,lsec/2,90,90&lt;BR /&gt;
Why is that?</description>
      <pubDate>Sun, 07 Sep 2014 14:32:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206705#M12252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-07T14:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206706#M12253</link>
      <description>'sthit' is the length of the cone so you need to create a length parameter called 'sthit' in your parameter list to control it.&lt;BR /&gt;
&lt;BR /&gt;
'lsec' is the radius of the cone (leg) so again you need a length parameter called 'lsec' to control it.&lt;BR /&gt;
&lt;BR /&gt;
So instead of using actual fixed numbers in your CONE command you now have parameters that the user will be able to see in the object settings and by changing the values in those parameters the user can control the length and width of the chair legs.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
In your CONE command example instead of using one parameter for the base width and another for the top width you are simple using the same radius (lsec) but divided by 3 for the base and divided by 2 for the top.&lt;BR /&gt;
This way you are guaranteed that the base will always be smaller than the top.&lt;BR /&gt;
&lt;BR /&gt;
The divide by 3 or 2 are arbitrary figures - they could be anything you want to get the desired ratio between the top and base cone radii.&lt;BR /&gt;
&lt;BR /&gt;
If you use two separate parameters for base and top then you can control them independently so you could make the base and top any width you want.&lt;BR /&gt;
&lt;BR /&gt;
The '90,90' at the end is just then angle of the base and top ends of the cone - 90 is perpendicular to the axis of the cone length.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 08 Sep 2014 02:30:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206706#M12253</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2014-09-08T02:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206707#M12254</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;'sthit' is the length of the cone ...&lt;/BLOCKQUOTE&gt;

Had to read that twice  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 08 Sep 2014 03:19:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206707#M12254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-08T03:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206708#M12255</link>
      <description>&lt;BLOCKQUOTE&gt;s2art wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;'sthit' is the length of the cone ...&lt;/BLOCKQUOTE&gt;

Had to read that twice  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;&lt;/BLOCKQUOTE&gt;

I had to be careful not to make a typo.  &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>Mon, 08 Sep 2014 03:24:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206708#M12255</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2014-09-08T03:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206709#M12256</link>
      <description>Studying the cookbook 4 I came to the chapter of the curved chair back.&lt;BR /&gt;
Instead of simply copying the examples I try to understand the BPRIM_ and the formula to make it parametric.&lt;BR /&gt;
Can someone explain (90-atn((A/2/bbulg))*2 and rad=(a/2/sin(angl) when the chord is 45 cm and the bulge is 8 cm.&lt;BR /&gt;
I tried to find a tutorial on youtube but that failed sofar.</description>
      <pubDate>Tue, 02 Dec 2014 10:38:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206709#M12256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: GDL beginners question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206710#M12257</link>
      <description>Hi. There's really not much that can be explained. The formula is to get the radius of a circle based on chord length and depth. It's simple trigonometry.&lt;BR /&gt;
&lt;BR /&gt;
I'm not really sure the formula is correct. I did my own study on the subject. There is some info online.&lt;BR /&gt;
&lt;BR /&gt;
If you are asking about the functions, they are GDL circular functions.&lt;BR /&gt;
&lt;BR /&gt;
bbulg, angl and rad are variables (or parameters, whatever the case)&lt;BR /&gt;
atn returns arc tangent(of angle).&lt;BR /&gt;
sin returns sine(of angle)&lt;BR /&gt;
&lt;BR /&gt;
human readable formatted formulas would be:&lt;BR /&gt;
(90 - arcTangentOf( (chordLength/2)/chordDepth ) * 2&lt;BR /&gt;
&lt;BR /&gt;
rad = (chordLength/2) / sineOf(angleData)&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Tue, 02 Dec 2014 15:43:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-beginners-question/m-p/206710#M12257</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-12-02T15:43:28Z</dc:date>
    </item>
  </channel>
</rss>

