<?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: replace window with door in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/replace-window-with-door/m-p/338674#M1482</link>
    <description>&lt;P&gt;I’m sure this ain’t possible as they effectively completely different tools.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 17:36:58 GMT</pubDate>
    <dc:creator>Lee Hankins</dc:creator>
    <dc:date>2022-05-17T17:36:58Z</dc:date>
    <item>
      <title>replace window with door</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/replace-window-with-door/m-p/338672#M1481</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to replace an element that actually is a window by a door, by changing the used library part.&lt;/P&gt;&lt;P&gt;For replacing library parts window with window or door with door it works perfectly.&lt;/P&gt;&lt;P&gt;But is it possible to change an element from window to door?&lt;/P&gt;&lt;P&gt;My actual code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;	API_ElementMemo elementMemo;
	GSErrCode errorGetMemo = ACAPI_Element_GetMemo(guidElement, &amp;amp;elementMemo);
	if (errorGetMemo != NoError)
	{
		return false;
	}

	// create element mask
	API_Element elementMask;
	BNZeroMemory(&amp;amp;elementMask, sizeof(API_Element));

	// set to door

	ACAPI_ELEMENT_MASK_SET(elementMask, API_Elem_Head, typeID);
	element.header.typeID = API_DoorID;

	ACAPI_ELEMENT_MASK_SET(elementMask, API_DoorType, openingBase.libInd);
	element.door.openingBase.libInd = iLibPartIndexNew;

	errorChangeParams = ACAPI_Element_ChangeParameters({ element.header.guid }, &amp;amp;element, pElementMemo, &amp;amp;elementMask);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 17:34:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/replace-window-with-door/m-p/338672#M1481</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2022-05-17T17:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: replace window with door</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/replace-window-with-door/m-p/338674#M1482</link>
      <description>&lt;P&gt;I’m sure this ain’t possible as they effectively completely different tools.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 17:36:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/replace-window-with-door/m-p/338674#M1482</guid>
      <dc:creator>Lee Hankins</dc:creator>
      <dc:date>2022-05-17T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: replace window with door</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/replace-window-with-door/m-p/338810#M1483</link>
      <description>&lt;P&gt;I made a wish regarding the merging of the relevant tools&amp;nbsp;&lt;A href="https://community.Graphisoft.com/t5/Wishes-forum/Opening-Tool-as-Standard-Wall-Penetration-Tool/m-p/262357" target="_self"&gt;here&lt;/A&gt;. If they ever implement this change, it would most likely make your operation possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 01:31:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/replace-window-with-door/m-p/338810#M1483</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-05-19T01:31:34Z</dc:date>
    </item>
  </channel>
</rss>

