<?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: ACAPI_Element_Change with libInd swap on IFC-imported door — does element GUID survive? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Change-with-libInd-swap-on-IFC-imported-door-does/m-p/705193#M10932</link>
    <description>&lt;P class=""&gt;Final update — root cause identified:&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;IFC-imported doors have `ParameterTakesPrecedence = FALSE` and `Sizeable = FALSE` as IFC boolean attributes. These prevent GDL parameters from controlling dimensions or the wall opening.&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Is there a C++ API call to set these two IFC boolean attributes programmatically on an imported door element?&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Is it `ACAPI_Element_SetIFCAttribute` or part of the IFC Properties API?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2026 19:20:57 GMT</pubDate>
    <dc:creator>CritZer0</dc:creator>
    <dc:date>2026-06-16T19:20:57Z</dc:date>
    <item>
      <title>ACAPI_Element_Change with libInd swap on IFC-imported door — does element GUID survive?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Change-with-libInd-swap-on-IFC-imported-door-does/m-p/705148#M10929</link>
      <description>&lt;P class=""&gt;We're working on an add-on that converts IFC-imported door and window elements into native parametric ArchiCAD library objects programmatically.&amp;nbsp;I've been able to do this manually by setting up a door in the door tool that matches the correct size of the door, then injecting the properties into the neutral IFC door object that was merged into the PLN.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Our approach: call &lt;SPAN class=""&gt;ACAPI_Element_Change&lt;/SPAN&gt; on an IFC-imported door element, masking &lt;SPAN class=""&gt;openingBase.libInd&lt;/SPAN&gt; to a valid native library part index, then writing &lt;SPAN class=""&gt;openingBase.width&lt;/SPAN&gt; and &lt;SPAN class=""&gt;openingBase.height&lt;/SPAN&gt;. This appears to be what the UI's "Inject Element Settings" (&lt;SPAN class=""&gt;Opt+Cmd+Click&lt;/SPAN&gt;) does internally.&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Three questions:&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;1. Does &lt;SPAN class=""&gt;ACAPI_Element_Change&lt;/SPAN&gt; with a &lt;SPAN class=""&gt;libInd&lt;/SPAN&gt; swap on an IFC-imported element preserve the element's ArchiCAD GUID — and therefore any attached custom properties?&lt;/P&gt;
&lt;P class=""&gt;2. Is this the correct programmatic equivalent of "Inject Element Settings," or is there a dedicated API path for this operation?&lt;/P&gt;
&lt;P class=""&gt;3. Are there known restrictions or side effects when calling &lt;SPAN class=""&gt;ACAPI_Element_Change&lt;/SPAN&gt; on IFC-imported elements specifically, versus native elements?&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Further update with precise findings:&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;After `SwapLibraryPart` via `ACAPI_Element_Change`:&lt;/P&gt;
&lt;P class=""&gt;- The wall opening (wallhole polygon) retains original IFC dimensions and is not recut&lt;/P&gt;
&lt;P class=""&gt;- `ACAPI_Element_GetGDLParameters` fails entirely on the element&lt;/P&gt;
&lt;P class=""&gt;- The element appears to be in an intermediate state — geometry correct, but locked&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;The UI `Opt+Cmd+Click` "Inject Element Settings" resolves all three issues simultaneously.&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Questions:&lt;/P&gt;
&lt;P class=""&gt;1. What is the programmatic equivalent of "Inject Element Settings" — specifically the call that switches an IFC-imported door from IFC-driven to GDL-driven mode?&lt;/P&gt;
&lt;P class=""&gt;2. Does this involve `ACAPI_Element_Change` with `API_DoorType` + `openingBase` mask, or a separate IFC detach call?&lt;/P&gt;
&lt;P class=""&gt;3. After the mode switch, does ArchiCAD automatically recalculate IFC attributes (`OverallWidth`/`OverallHeight`) from GDL parameters on export?&lt;/P&gt;
&lt;P class=""&gt;AC29, DevKit 29.3100. Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Apple Silicon Tahoe 26.5.1&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2026 19:20:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Change-with-libInd-swap-on-IFC-imported-door-does/m-p/705148#M10929</guid>
      <dc:creator>CritZer0</dc:creator>
      <dc:date>2026-06-16T19:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_Change with libInd swap on IFC-imported door — does element GUID survive?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Change-with-libInd-swap-on-IFC-imported-door-does/m-p/705193#M10932</link>
      <description>&lt;P class=""&gt;Final update — root cause identified:&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;IFC-imported doors have `ParameterTakesPrecedence = FALSE` and `Sizeable = FALSE` as IFC boolean attributes. These prevent GDL parameters from controlling dimensions or the wall opening.&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Is there a C++ API call to set these two IFC boolean attributes programmatically on an imported door element?&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Is it `ACAPI_Element_SetIFCAttribute` or part of the IFC Properties API?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2026 19:20:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Change-with-libInd-swap-on-IFC-imported-door-does/m-p/705193#M10932</guid>
      <dc:creator>CritZer0</dc:creator>
      <dc:date>2026-06-16T19:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_Change with libInd swap on IFC-imported door — does element GUID survive?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Change-with-libInd-swap-on-IFC-imported-door-does/m-p/705719#M10942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've entered it as a support issue, and asked a developer to look into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tamás&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2026 15:21:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Change-with-libInd-swap-on-IFC-imported-door-does/m-p/705719#M10942</guid>
      <dc:creator>Tamas Polyak</dc:creator>
      <dc:date>2026-06-18T15:21:55Z</dc:date>
    </item>
  </channel>
</rss>

