<?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 Add property to components (parts of a composite wall or slab) in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-property-to-components-parts-of-a-composite-wall-or-slab/m-p/583313#M9064</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to add a property to a non-element object like a components (parts of a composite wall or slab) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found this method which allow to add a property to element : ACAPI_Property_AddProperty (API_PropertyDefinition&amp;amp; definition, const GS::Array&amp;lt;API_Guid&amp;gt;&amp;amp; elemGuids)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i check which object is an element, components are not : &lt;A href="https://graphisoft.github.io/archicad-api-devkit/union_a_p_i___element.html" target="_blank" rel="noopener"&gt;https://graphisoft.github.io/archicad-api-devkit/union_a_p_i___element.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My goal is to try to add property to the component itself so when I export an IFC, each IfcBuildingElementPart has it's own parameter value which can be different for each layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what I know, only 3 things can be obtained about components:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The ID (API_ComponentID) not a GUID, it's the number in the compound structure.&lt;/LI&gt;
&lt;LI&gt;The 3D geometry (API_Component3D) but I've never tried.&lt;/LI&gt;
&lt;LI&gt;The quantity (API_CompositeQuantity).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;But I hope I'm wrong and that we can do more things, like manipulate properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:44:36 GMT</pubDate>
    <dc:creator>LVirone Greisch</dc:creator>
    <dc:date>2024-09-16T12:44:36Z</dc:date>
    <item>
      <title>Add property to components (parts of a composite wall or slab)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-property-to-components-parts-of-a-composite-wall-or-slab/m-p/583313#M9064</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to add a property to a non-element object like a components (parts of a composite wall or slab) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found this method which allow to add a property to element : ACAPI_Property_AddProperty (API_PropertyDefinition&amp;amp; definition, const GS::Array&amp;lt;API_Guid&amp;gt;&amp;amp; elemGuids)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i check which object is an element, components are not : &lt;A href="https://graphisoft.github.io/archicad-api-devkit/union_a_p_i___element.html" target="_blank" rel="noopener"&gt;https://graphisoft.github.io/archicad-api-devkit/union_a_p_i___element.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My goal is to try to add property to the component itself so when I export an IFC, each IfcBuildingElementPart has it's own parameter value which can be different for each layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what I know, only 3 things can be obtained about components:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The ID (API_ComponentID) not a GUID, it's the number in the compound structure.&lt;/LI&gt;
&lt;LI&gt;The 3D geometry (API_Component3D) but I've never tried.&lt;/LI&gt;
&lt;LI&gt;The quantity (API_CompositeQuantity).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;But I hope I'm wrong and that we can do more things, like manipulate properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:44:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Add-property-to-components-parts-of-a-composite-wall-or-slab/m-p/583313#M9064</guid>
      <dc:creator>LVirone Greisch</dc:creator>
      <dc:date>2024-09-16T12:44:36Z</dc:date>
    </item>
  </channel>
</rss>

