<?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: Request the top area of this slab? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/637928#M7104</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14606"&gt;@Pertti Paasky&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think the object does not get the area information of the slab&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is correct.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/54542"&gt;@yongler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SLAB_TOP_SURF is not for use in REQUEST commands.&lt;/P&gt;
&lt;P&gt;It is a Global Variable that can be used only in lists or labels - i.e. a label can give you the area of a slab.&lt;/P&gt;
&lt;P&gt;As Pertti suggests, you will have to calculate the area from the point information (nodes) of the slab.&lt;/P&gt;
&lt;P&gt;I am not quite sure why you would want the area for an accessory object though?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 07:32:36 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2024-10-31T07:32:36Z</dc:date>
    <item>
      <title>Request the top area of this slab?</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/637907#M7102</link>
      <description>I want to make GDL for floor slab accessories and request the top area of this slab. I wrote this:

n = REQUEST("SLAB_TOP_SURF" , " " , _area ) 

But it was not successful. May I ask how to write this sentence?</description>
      <pubDate>Thu, 31 Oct 2024 02:39:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/637907#M7102</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2024-10-31T02:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Request the top area of this slab?</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/637924#M7103</link>
      <description>&lt;P&gt;I think the object does not get the area information of the slab, but You can calculate the area from the point information.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.wikihow.com/Calculate-the-Area-of-a-Polygon" target="_blank"&gt;https://www.wikihow.com/Calculate-the-Area-of-a-Polygon&lt;/A&gt;&amp;nbsp; this site tells how.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 07:03:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/637924#M7103</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2024-10-31T07:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Request the top area of this slab?</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/637928#M7104</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14606"&gt;@Pertti Paasky&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think the object does not get the area information of the slab&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is correct.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/54542"&gt;@yongler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SLAB_TOP_SURF is not for use in REQUEST commands.&lt;/P&gt;
&lt;P&gt;It is a Global Variable that can be used only in lists or labels - i.e. a label can give you the area of a slab.&lt;/P&gt;
&lt;P&gt;As Pertti suggests, you will have to calculate the area from the point information (nodes) of the slab.&lt;/P&gt;
&lt;P&gt;I am not quite sure why you would want the area for an accessory object though?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 07:32:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/637928#M7104</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-10-31T07:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Request the top area of this slab?</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/638051#M7105</link>
      <description>&lt;P&gt;Thank you very much！ This is exactly what I want.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;!!!===求板面积，不包括挖洞的=======
data1 = 0.0
data2 = 0.0
FOR i = 1 to points -1  !!!叉乘
	 data1 =  P[i][1] * P[i+1][2] + data1
	 data2 =  P[i+1][1]* P[i][2] + data2 
 next i

slab_area = (data1 - data2 ) /2    !!!单层面积&lt;/LI-CODE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 01 Nov 2024 01:33:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/638051#M7105</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2024-11-01T01:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Request the top area of this slab?</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/638054#M7106</link>
      <description>&lt;P&gt;I want to create a GDL that generates a building model from slab Accessories Add Ons and calculates the area of the building.&lt;BR /&gt;When changing the shape of the slab, the building outline also changes, and the area data changes accordingly. The area data is embedded in this GDL, rather than displayed through labels.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 01:42:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/638054#M7106</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2024-11-01T01:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Request the top area of this slab?</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/638055#M7107</link>
      <description>&lt;P&gt;Thank you very much！ This is exactly what I want.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;!!!===求板面积，不包括挖洞的=======
data1 = 0.0
data2 = 0.0
FOR i = 1 to points -1  !!!叉乘
	 data1 =  P[i][1] * P[i+1][2] + data1
	 data2 =  P[i+1][1]* P[i][2] + data2 
 next i

slab_area = (data1 - data2 ) /2    !!!单层面积&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;With the calculation method, writing scripts using GDL is so simple.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 01:45:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-the-top-area-of-this-slab/m-p/638055#M7107</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2024-11-01T01:45:53Z</dc:date>
    </item>
  </channel>
</rss>

