<?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: how to get the labelled door origin in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/375093#M919</link>
    <description>&lt;P&gt;Anyone able to help on this please.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2023 02:07:56 GMT</pubDate>
    <dc:creator>easyDoesIt</dc:creator>
    <dc:date>2023-04-01T02:07:56Z</dc:date>
    <item>
      <title>how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373218#M914</link>
      <description>&lt;P&gt;I have a label that I would like to know the origin of the door that it is labelling. What I have so far below. This works fine for a door in a straight wall at any rotation. When I come to a radial wall I can't seem to find any global parameters which will tell me where the door is since it only gives me the angle of the chord of the opening. Thinking I am trying to make this too complex, should I be using something else to get the origin of the door?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    !1 remove rotation of label, labelautorotates to be readable
if (LABEL_ROTANGLE &amp;lt;=90 or LABEL_ROTANGLE &amp;gt;270) then
rot2 -LABEL_ROTANGLE
else
rot2 -LABEL_ROTANGLE + 180
endif
    !2 return to origin
add2 -LABEL_POSITION[1][1], - LABEL_POSITION[1][2]
    !3 move to start of wall position
add2 WALL_POSITION[1], WALL_POSITION[2]
    !4 rotate to wall rotation, note this is the angle of opening chord in the wall between reveals
rot2 WALL_DIRECTION
    !5 move to door position in wall
add2 SYMB_POS_X, 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit, removed symb_pos_Y from last add2, not needed.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 00:57:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373218#M914</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2023-03-25T00:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373342#M915</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;WIDO_POSITION is available in the parameter script of doors/windows, you can store it as a parameter, then read that from the label.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 11:24:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373342#M915</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-03-16T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373604#M916</link>
      <description>&lt;P&gt;Thanks Peter, I want to read any door library part so I don't have control over what parameters that door has. Any other ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 01:39:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373604#M916</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2023-03-18T01:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373947#M917</link>
      <description>&lt;P&gt;Archicad library has &lt;A href="https://gdl.graphisoft.com/reference-guide/dw-params" target="_blank" rel="noopener"&gt;ac_hole_position_angle&lt;/A&gt; too.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 10:39:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/373947#M917</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-03-22T10:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/374260#M918</link>
      <description>&lt;P&gt;Thanks for your help on this Peter, just cant seem to work out what I need. See snapshot below, in the straight wall I can determine the origin of the door from within the label, but I just don't seem to have enough information to work door origin for a curved wall as shown in red. Items in black are known. What am I missing?&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="easyDoesIt_0-1679709855846.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35418i091D50AB56059700/image-size/medium?v=v2&amp;amp;px=400" role="button" title="easyDoesIt_0-1679709855846.png" alt="easyDoesIt_0-1679709855846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 02:15:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/374260#M918</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2023-03-25T02:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/375093#M919</link>
      <description>&lt;P&gt;Anyone able to help on this please.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 02:07:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/375093#M919</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2023-04-01T02:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/375509#M920</link>
      <description>&lt;P&gt;It looks like we know enough things:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterBaksa_2-1680623074199.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35828i5C92CBE034FE3BDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PeterBaksa_2-1680623074199.png" alt="PeterBaksa_2-1680623074199.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The red angle is &lt;A href="https://gdl.graphisoft.com/reference-guide/dw-params" target="_blank" rel="noopener nofollow noreferrer"&gt;ac_hole_position_angle&lt;/A&gt; in the Archicad Library. It can be read from the label using request("ASSOCLP_PARVALUE")&lt;/P&gt;
&lt;P&gt;The green angle is WALL_DIRECTION or better LABEL_ASSOC_ELEM_ORIENTATION.&lt;/P&gt;
&lt;P&gt;Marked with green crosshairs is your label's transformations without the last&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;add2 SYMB_POS_X, 0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So we know the start point of the red line, and its orientation (calculated from the green and red angles).&lt;/P&gt;
&lt;P&gt;The blue distance is WIDO_ORIG_DIST, the distance from the wall center to the reveal depth. The wall radius could be calculated from this and WIDO_SILL. Probably there are difficulties here with han&lt;SPAN&gt;dling the &lt;A href="https://gdl.graphisoft.com/gdl-basics/simple-doors-and-windows" target="_blank" rel="noopener"&gt;orientation&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Knowing the radius, we get the arc center on the red line, and the midpoint of the opening on the green line.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 16:07:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/375509#M920</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-04-04T16:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/379927#M921</link>
      <description>&lt;P&gt;Thanks Peter for the direction. I got caught up in some other items and have come back to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to calculate the radius however my problem now is knowing which side the reveal is on. WIDO_REVEAL_SIDE tells me if opposite but there is nothing that tells me the window is placed on the outside or inside edge of the wall. Not an issue for a straight wall but for curved this changes how WIDO_ORIG_DIST relates the inside and outside radius.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="easyDoesIt_0-1683699559296.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/37704i6BF96EEF1E0BB385/image-size/medium?v=v2&amp;amp;px=400" role="button" title="easyDoesIt_0-1683699559296.png" alt="easyDoesIt_0-1683699559296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 06:26:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/379927#M921</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2023-05-10T06:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/380079#M922</link>
      <description>&lt;P&gt;WALL_FLIPPED should help. It is 0 when the outside of the wall is to the left relative to the reference line direction. A curved wall's reference line always goes ccw around the center.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 10:47:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/380079#M922</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-05-11T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/381266#M923</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WALL_FLIPPED does not seem to change if the reveal side is changed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find out if the reveal is on the outside or inside radius of the curved wall so I can then work backwards from the &lt;SPAN&gt;WIDO_ORIG_DIST of the door and calculate the radius of the wall.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 00:39:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/381266#M923</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2023-05-24T00:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the labelled door origin</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/381821#M924</link>
      <description>&lt;P&gt;Yes, WALL_FLIPPED is about the wall, WIDO_REVEAL_SIDE is about the opening.&lt;/P&gt;
&lt;P&gt;WIDO_REVEAL_SIDE is the reveal side relative to the opening direction. When you place an opening, the first click is the reveal side, the second is the opening direction. The opening's coordinate system is rotated to the opening direction.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 10:54:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-get-the-labelled-door-origin/m-p/381821#M924</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-05-30T10:54:00Z</dc:date>
    </item>
  </channel>
</rss>

