<?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: disable Window Insertion on inner side of wall in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/disable-Window-Insertion-on-inner-side-of-wall/m-p/329738#M1427</link>
    <description>&lt;P&gt;No, not directly. Although there is a filtering mechanism (see &lt;CODE&gt;SetFilterForInput&lt;/CODE&gt; in Interface_Functions.cpp), but it is not suitable for this situation.&lt;BR /&gt;You can reject the input after getting the coordinate from the user (hint: &lt;CODE&gt;API_GetPointType&lt;/CODE&gt; contains the guid of the clicked element), and keep asking for input when the user clicks an invalid point.&lt;/P&gt;
&lt;P&gt;You may also set the &lt;CODE&gt;pointInfo.prompt&lt;/CODE&gt; message (it appears in the status bar at the bottom) to inform the user about what kind of input you are expecting.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 19:01:58 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2022-02-11T19:01:58Z</dc:date>
    <item>
      <title>disable Window Insertion on inner side of wall</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/disable-Window-Insertion-on-inner-side-of-wall/m-p/329332#M1425</link>
      <description>&lt;P&gt;I am creating custom windows with my AddOn.&lt;/P&gt;&lt;P&gt;Actually I am using the following code to get the click-point of the user on a wall:&lt;/P&gt;&lt;P&gt;ClickAnElem(sClickWall.ToCStr().Get(), API_WallID, nullptr, API_WindowID, &amp;amp;wallGuid, &amp;amp;coord3D);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the resulting insertion tool allowes the user the insert the window on the inner and the outer side of the wall:&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="question.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/18913i001D5BB89AB2C5F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="question.png" alt="question.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a possibility to only allow windows to be set on the outer side of the wall?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 14:45:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/disable-Window-Insertion-on-inner-side-of-wall/m-p/329332#M1425</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2022-02-08T14:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: disable Window Insertion on inner side of wall</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/disable-Window-Insertion-on-inner-side-of-wall/m-p/329610#M1426</link>
      <description>&lt;P&gt;Cannot be done, You can "bypass" the "opening direction" (refer to niche object as an example), but not this, however I have windows that sense the core (a lintel) and is put there in correct position.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 13:41:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/disable-Window-Insertion-on-inner-side-of-wall/m-p/329610#M1426</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2022-02-10T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: disable Window Insertion on inner side of wall</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/disable-Window-Insertion-on-inner-side-of-wall/m-p/329738#M1427</link>
      <description>&lt;P&gt;No, not directly. Although there is a filtering mechanism (see &lt;CODE&gt;SetFilterForInput&lt;/CODE&gt; in Interface_Functions.cpp), but it is not suitable for this situation.&lt;BR /&gt;You can reject the input after getting the coordinate from the user (hint: &lt;CODE&gt;API_GetPointType&lt;/CODE&gt; contains the guid of the clicked element), and keep asking for input when the user clicks an invalid point.&lt;/P&gt;
&lt;P&gt;You may also set the &lt;CODE&gt;pointInfo.prompt&lt;/CODE&gt; message (it appears in the status bar at the bottom) to inform the user about what kind of input you are expecting.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 19:01:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/disable-Window-Insertion-on-inner-side-of-wall/m-p/329738#M1427</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2022-02-11T19:01:58Z</dc:date>
    </item>
  </channel>
</rss>

