<?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(?) opening geometry in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/583689#M6175</link>
    <description>&lt;P&gt;There seems to be no way, sadly. The "OPENING_SYMBOL_GEOMETRY" dict is not accessible from a label, so I don't know how to deduce it otherwise.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 11:54:14 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2024-01-12T11:54:14Z</dc:date>
    <item>
      <title>Request(?) opening geometry</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/583509#M6166</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating a label that shows the dimensions of an opening (created with the opening tool). This works fine for rectangular opening (&lt;EM&gt;width&lt;/EM&gt; + &lt;EM&gt;height&lt;/EM&gt;). But for circular openings the diameter must be shown (or just&amp;nbsp;&lt;SPAN&gt;∅ &lt;EM&gt;width&lt;/EM&gt;).&lt;BR /&gt;Is there a way to find out what the shape of the opening is in a label?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For now i'm using a boolean in the label properties, I hope I can do it automaticly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DNU_0-1704901370854.png" style="width: 800px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/51764i89DFB659076F2E00/image-dimensions/800x391?v=v2" width="800" height="391" role="button" title="DNU_0-1704901370854.png" alt="DNU_0-1704901370854.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:24:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/583509#M6166</guid>
      <dc:creator>DNU</dc:creator>
      <dc:date>2024-09-26T11:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Request(?) opening geometry</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/583689#M6175</link>
      <description>&lt;P&gt;There seems to be no way, sadly. The "OPENING_SYMBOL_GEOMETRY" dict is not accessible from a label, so I don't know how to deduce it otherwise.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:54:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/583689#M6175</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2024-01-12T11:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Request(?) opening geometry</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/585378#M6234</link>
      <description>&lt;P&gt;A workaround is to test the area and perimeter. The only downside in the unlikely event a polygon opening could have the same perimeter as a circle with the same overall width and height. But unlikely the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;eps = 0.0001

	!if a opening
if GLOB_ELEM_TYPE = 26 then
	n = REQUEST ( "Property_Value_Of_Parent", "Builtin.General_Area", type, dim1, dim2, elementArea)
	n = REQUEST ( "Property_Value_Of_Parent", "Builtin.General_3DPerimeter", type, dim1, dim2, elementPerimeter)

		!if length x width is the correct area, then a rectangle
	if abs( (opening_width * opening_height) - elementArea) &amp;lt; eps then
		text2 0, -1, "rectangle " + str(opening_width,4,3) + " x " + str(opening_height,4,3)
	else
			!if circle then diameter should match
		if abs ( (2 * PI * (opening_width/2)) - elementPerimeter ) &amp;lt; eps then
			text2 0, -1, "circle diameter " + str(opening_width,4,3)
		else
			text2 0, -1, "polygon " + str(opening_width,4,3) + " x " + str(opening_height,4,3)
		endif
	endif
endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 01:30:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/585378#M6234</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2024-01-25T01:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Request(?) opening geometry</title>
      <link>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/585413#M6239</link>
      <description>&lt;P&gt;Thanks Mark!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gr&lt;/P&gt;&lt;P&gt;Dries&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 07:58:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Request-opening-geometry/m-p/585413#M6239</guid>
      <dc:creator>DNU</dc:creator>
      <dc:date>2024-01-25T07:58:31Z</dc:date>
    </item>
  </channel>
</rss>

