<?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 GDL Scripting to add new table leg option in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Scripting-to-add-new-table-leg-option/m-p/598577#M6505</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;I tried looking into GDL scripting to add an option to have a column table base in the "Office Table 27". Unfortunately the whole idea of GDL scripting goes way over my head and I can't find any helpful tutorials online.&lt;BR /&gt;&lt;BR /&gt;I really like using the Office Table as a regular table as it gives you so many different options in terms of table top shapes and edge profiles. However I sometimes need to use tables with a column base (screenshot attached). I have created a gsm object that looks like the screenshot attached, however it is not editable for when the size, height or tabletop shape change&lt;BR /&gt;&lt;BR /&gt;Anyone know how I can change the script to include this table leg style?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Apple Silicon 14 Sonoma&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-10 at 19.01.30.png" style="width: 800px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/59058i9891A936ED18BA51/image-dimensions/800x777?v=v2" width="800" height="777" role="button" title="Screenshot 2024-04-10 at 19.01.30.png" alt="Screenshot 2024-04-10 at 19.01.30.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-10 at 19.02.17.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/59059i7FF3D3CD321F7CB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-04-10 at 19.02.17.png" alt="Screenshot 2024-04-10 at 19.02.17.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;  &lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 08:11:43 GMT</pubDate>
    <dc:creator>Sabrina</dc:creator>
    <dc:date>2024-09-24T08:11:43Z</dc:date>
    <item>
      <title>GDL Scripting to add new table leg option</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Scripting-to-add-new-table-leg-option/m-p/598577#M6505</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I tried looking into GDL scripting to add an option to have a column table base in the "Office Table 27". Unfortunately the whole idea of GDL scripting goes way over my head and I can't find any helpful tutorials online.&lt;BR /&gt;&lt;BR /&gt;I really like using the Office Table as a regular table as it gives you so many different options in terms of table top shapes and edge profiles. However I sometimes need to use tables with a column base (screenshot attached). I have created a gsm object that looks like the screenshot attached, however it is not editable for when the size, height or tabletop shape change&lt;BR /&gt;&lt;BR /&gt;Anyone know how I can change the script to include this table leg style?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Apple Silicon 14 Sonoma&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-10 at 19.01.30.png" style="width: 800px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/59058i9891A936ED18BA51/image-dimensions/800x777?v=v2" width="800" height="777" role="button" title="Screenshot 2024-04-10 at 19.01.30.png" alt="Screenshot 2024-04-10 at 19.01.30.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-10 at 19.02.17.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/59059i7FF3D3CD321F7CB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-04-10 at 19.02.17.png" alt="Screenshot 2024-04-10 at 19.02.17.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:11:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Scripting-to-add-new-table-leg-option/m-p/598577#M6505</guid>
      <dc:creator>Sabrina</dc:creator>
      <dc:date>2024-09-24T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Scripting to add new table leg option</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Scripting-to-add-new-table-leg-option/m-p/603326#M6615</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I'd suggest you to do the following steps if you really want to customize this object.&lt;/P&gt;
&lt;P&gt;1) 'Save as' the Office Table with other name at first and save the leg macro '&lt;SPAN&gt;fa_tableleg_macro' with other name, as well (for example, 'fa_tableleg_macro2').&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2) Change the macro 'call' to&amp;nbsp;&lt;SPAN&gt;'fa_tableleg_macro2' in&amp;nbsp;Office Table Parameter/UI/3D scripts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;3) Expand&amp;nbsp;&lt;SPAN&gt;gs_leg_type_string array to [7] and add your new option in&amp;nbsp;Office Table master script&amp;nbsp;like below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; gs_leg_type_string&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;`SingleLeg`&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;4) Add the new option for parameter script of 'fa_tableleg_macro2' like below:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;if GLOB_MODPAR_NAME = "gs_leg_type" then
    gs_leg_type_m = 1
    if gs_leg_type = gs_leg_type_string[2] then gs_leg_type_m = 2
    if gs_leg_type = gs_leg_type_string[3] then gs_leg_type_m = 3
    if gs_leg_type = gs_leg_type_string[4] then gs_leg_type_m = 4
    if gs_leg_type = gs_leg_type_string[5] then gs_leg_type_m = 5
    if gs_leg_type = gs_leg_type_string[6] then gs_leg_type_m = 6
    if gs_leg_type = gs_leg_type_string[7] then gs_leg_type_m = 7
    parameters gs_leg_type_m = gs_leg_type_m
else
    gs_leg_type = gs_leg_type_string[1]
    if gs_leg_type_m = 2 then gs_leg_type = gs_leg_type_string[2]
    if gs_leg_type_m = 3 then gs_leg_type = gs_leg_type_string[3]
    if gs_leg_type_m = 4 then gs_leg_type = gs_leg_type_string[4]
    if gs_leg_type_m = 5 then gs_leg_type = gs_leg_type_string[5]
    if gs_leg_type_m = 6 then gs_leg_type = gs_leg_type_string[6]
    if gs_leg_type_m = 7 then gs_leg_type = gs_leg_type_string[7]
    parameters gs_leg_type = gs_leg_type
endif
5) Modify UI script of 'fa_tableleg_macro2' like below for showing the new option:

ui_infield{3} "gs_leg_type",        x,  y, 300, 236,
    1, 1, 8, 4,             ! ui_legtypes(1).png
    90, 116, 70, 90,
    1, gs_leg_type_string[1], gs_leg_type_string[1],
    2, gs_leg_type_string[2], gs_leg_type_string[2],
    5, gs_leg_type_string[3], gs_leg_type_string[3],
    7, gs_leg_type_string[4], gs_leg_type_string[4],
    3, gs_leg_type_string[5], gs_leg_type_string[5],
    4, gs_leg_type_string[6], gs_leg_type_string[6],
    1, gs_leg_type_string[7], gs_leg_type_string[7]
6) Finally, write your own 3D model in 3D script of 'fa_tableleg_macro2' when the condition is  gs_leg_type_m = 7.
        if gs_leg_type_m = 7 then
        ...
        endif&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 03:20:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Scripting-to-add-new-table-leg-option/m-p/603326#M6615</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2024-05-11T03:20:39Z</dc:date>
    </item>
  </channel>
</rss>

