<?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: Cannot figure out how to get wall radius for label in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282943#M3390</link>
    <description>Here's my quick &amp;amp; dirty solution for wall radius:
&lt;PRE&gt;dict geo, p

if haskey(LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour.edges[1].ArcAngle) then
	geo.has = "yes"
	geo.ang = LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour.edges[1].ArcAngle
	geo.num = vardim1(LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour.edges)

	p = LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour
	geo.dir.x = p.edges[2].begPoint.x - p.edges[1].begPoint.x
	geo.dir.y = p.edges[2].begPoint.y - p.edges[1].begPoint.y

	geo.chord = (geo.dir.x^2 + geo.dir.y^2)^0.5
	geo.rad = geo.chord/(2*sin(geo.ang/2))


else
	geo.has = "no"
	geo.ang = 0
	geo.num = 0
	geo.rad = 0

endif


hotspot2 0,0

if geo.num &amp;gt; 2 then
	text2 0,0, "poly"

else
	text2 0,0, "ang= " + str("%", geo.ang) + "\nrad= " + str("%", geo.rad)

endif&lt;/PRE&gt;

works for AC23 and younger</description>
    <pubDate>Fri, 16 Jul 2021 13:14:18 GMT</pubDate>
    <dc:creator>Dominic Wyss</dc:creator>
    <dc:date>2021-07-16T13:14:18Z</dc:date>
    <item>
      <title>Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282924#M3371</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I need to script a label, that would know radius (also coordinates of radius centre) of the wall. I looked how window knows about it - for that there is special global variable WIDO_ORIG_DIST. But wall's global variables do not have any information about it. Any ideas? Or it's just impossible?&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:02:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282924#M3371</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-09-14T07:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282925#M3372</link>
      <description>I have never found the answer either.&lt;BR /&gt;
I was hoping the radial dimension tool would be a GDL object I could explore, but sadly no.&lt;BR /&gt;
So I think there is a way to do the math from other values but I haven't had time to look into yet. You would need start, end points (and center maybe) and then a length value.&lt;BR /&gt;
Or perhaps there is a command I just haven't found it.</description>
      <pubDate>Sun, 11 Jul 2021 23:21:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282925#M3372</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-07-11T23:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282926#M3373</link>
      <description>The only once way for solving this problem I found via using label coordinates. By placing label automatically it appears always in the middle of the wall. Then I have wall start point, wall arc middle point, chord direction and length of arc. This information would be enough to get formula finding radius and centre of radius.&lt;BR /&gt;
But the only problem here - if I'm placing label manually (not in the middle of the wall arc) it will calculate wrong radius, also if I'm modifying wall radius, length or position of the end point - it will give me wrong radius.&lt;BR /&gt;
But there is no another possibility, probably.</description>
      <pubDate>Mon, 12 Jul 2021 08:51:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282926#M3373</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-12T08:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282927#M3374</link>
      <description>The 'Moldings and Panel' wall accessory works on curved walls.&lt;BR /&gt;
Having a quick look at the scripts, it uses 'ac_wall_radius'.&lt;BR /&gt;
&lt;BR /&gt;
So 'ac_wall_radius' will read the radius of the wall for you if you can use that in your label.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 12 Jul 2021 09:33:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282927#M3374</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-07-12T09:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282928#M3375</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
The 'Moldings and Panel' wall accessory works on curved walls.&lt;BR /&gt;
Having a quick look at the scripts, it uses 'ac_wall_radius'.&lt;BR /&gt;
&lt;BR /&gt;
So 'ac_wall_radius' will read the radius of the wall for you if you can use that in your label.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.
&lt;/BLOCKQUOTE&gt;

No, I cannot. Wall accessory passing to the GDL object parameters values via Add-on (all information about wall geometry). There is no connection between label and Add-on. If I just set new parameter variable AC_wall_radius in label it will return me zero.</description>
      <pubDate>Mon, 12 Jul 2021 09:53:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282928#M3375</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-12T09:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282929#M3376</link>
      <description>I noticed that WALL_POSITION[1] gives the chord length of the arc.  That with WALL_DIRECTION gives us the real cord length.  With this and WALL_LENGTH_A (Arc length) we can get the wall radius thru &lt;A href="https://www.vcalc.com/wiki/vCalc/Circle+-+Chord+Length+from+Arc+Length+and+Radius" target="_blank"&gt;&lt;LINK_TEXT text="https://www.vcalc.com/wiki/vCalc/Circle ... and+Radius"&gt;https://www.vcalc.com/wiki/vCalc/Circle+-+Chord+Length+from+Arc+Length+and+Radius&lt;/LINK_TEXT&gt;&lt;/A&gt;.&lt;BR /&gt;
Does this makes sense?</description>
      <pubDate>Mon, 12 Jul 2021 20:08:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282929#M3376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-12T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282930#M3377</link>
      <description>No. WALL_POSITION means wall position - coordinates x,y,z. Wall position cannot give arc chord length.</description>
      <pubDate>Tue, 13 Jul 2021 00:00:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282930#M3377</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-13T00:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282931#M3378</link>
      <description>&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;WALL_POSITION[1]&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Is that a new variable in AC24/25? It is not available in AC23...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Tue, 13 Jul 2021 01:10:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282931#M3378</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-07-13T01:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282932#M3379</link>
      <description>Screen shot from AC17 GDL manual.&lt;BR /&gt;
Guys, what's wrong here is happening?</description>
      <pubDate>Tue, 13 Jul 2021 06:39:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282932#M3379</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-13T06:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282933#M3380</link>
      <description>Yes.  WALL_POSITION long exists.&lt;BR /&gt;
But I did a test with a dummy label with WALL_POSITION[1] AND [2] text2.&lt;BR /&gt;
Noticed that the arc is always counterclockwise although the origin straight wall was from left to right.&lt;BR /&gt;
Perhaps it is just luck.  But it gives you the chord length.  Though if I move the wall to the negative side of the origin it will give a different value...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
Just turning some rocks.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_neutral.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jul 2021 09:31:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282933#M3380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-13T09:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282934#M3381</link>
      <description>I cannot comment this anymore.</description>
      <pubDate>Tue, 13 Jul 2021 09:47:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282934#M3381</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-13T09:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282935#M3382</link>
      <description>Looks like AC25 has the solution.&lt;BR /&gt;
New label parameter: &lt;A href="http://gdl.graphisoft.com/reference-guide/label-parameters" target="_blank"&gt;LABEL_ASSOC_ELEM_GEOMETRY&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;



&lt;PRE&gt;radius_of_circle = Arc Length/Subtended Angle in Radians
r = s/θ&lt;/PRE&gt;

&lt;BR /&gt;
Does this now makes sense?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_mrgreen.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 13 Jul 2021 18:20:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282935#M3382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-13T18:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282936#M3383</link>
      <description>Now it does. I was writing on ArchiCAD 21, so didn't know about this new variable. It's actually introduced in ArchiCAD 23. Thank you a lot - this very useful information.</description>
      <pubDate>Tue, 13 Jul 2021 19:18:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282936#M3383</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-13T19:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282937#M3384</link>
      <description>You are welcome Podolsky.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 13 Jul 2021 19:45:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282937#M3384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-13T19:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282938#M3385</link>
      <description>Podiolsky. I sense beer is coming your way soon. I've introduced your label to a couple of teams in the office to try. I really appreciate your efforts as well as Braza's! Thank you.</description>
      <pubDate>Tue, 13 Jul 2021 20:34:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282938#M3385</guid>
      <dc:creator>Aaron Bourgoin</dc:creator>
      <dc:date>2021-07-13T20:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282939#M3386</link>
      <description>Million of thanks. Soon I will include curve part too, as you can see - we figure it out how to make it.&lt;BR /&gt;
Please let me know, do you need support for sections, or sections are not relevant.</description>
      <pubDate>Tue, 13 Jul 2021 22:53:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282939#M3386</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-13T22:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282940#M3387</link>
      <description>Hey Podolsky. Sections are less important. Plan cover the mandatory base information we need to submit. But thanks for asking.</description>
      <pubDate>Tue, 13 Jul 2021 22:58:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282940#M3387</guid>
      <dc:creator>Aaron Bourgoin</dc:creator>
      <dc:date>2021-07-13T22:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282941#M3388</link>
      <description>Hey Aaron,&lt;BR /&gt;
I am glad my small contribution to Podolsky label could somehow help.&lt;BR /&gt;
It looks like a proper Fire Rating Label is coming to reality.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
Cheers,</description>
      <pubDate>Wed, 14 Jul 2021 09:13:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282941#M3388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-14T09:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282942#M3389</link>
      <description>Yes, I think to keep a label as it is for old ArchiCAD versions, but add ArchiCAD version check, that, if version is 23 and above - to use modified script with a new global. So the object itself then still available starting from AC 21.</description>
      <pubDate>Wed, 14 Jul 2021 09:52:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282942#M3389</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-14T09:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot figure out how to get wall radius for label</title>
      <link>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282943#M3390</link>
      <description>Here's my quick &amp;amp; dirty solution for wall radius:
&lt;PRE&gt;dict geo, p

if haskey(LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour.edges[1].ArcAngle) then
	geo.has = "yes"
	geo.ang = LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour.edges[1].ArcAngle
	geo.num = vardim1(LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour.edges)

	p = LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour
	geo.dir.x = p.edges[2].begPoint.x - p.edges[1].begPoint.x
	geo.dir.y = p.edges[2].begPoint.y - p.edges[1].begPoint.y

	geo.chord = (geo.dir.x^2 + geo.dir.y^2)^0.5
	geo.rad = geo.chord/(2*sin(geo.ang/2))


else
	geo.has = "no"
	geo.ang = 0
	geo.num = 0
	geo.rad = 0

endif


hotspot2 0,0

if geo.num &amp;gt; 2 then
	text2 0,0, "poly"

else
	text2 0,0, "ang= " + str("%", geo.ang) + "\nrad= " + str("%", geo.rad)

endif&lt;/PRE&gt;

works for AC23 and younger</description>
      <pubDate>Fri, 16 Jul 2021 13:14:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Cannot-figure-out-how-to-get-wall-radius-for-label/m-p/282943#M3390</guid>
      <dc:creator>Dominic Wyss</dc:creator>
      <dc:date>2021-07-16T13:14:18Z</dc:date>
    </item>
  </channel>
</rss>

