<?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: Python and GUIDs of Composites in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-and-GUIDs-of-Composites/m-p/670676#M1130</link>
    <description>&lt;P&gt;Hi Jonas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there's also a command with the same name in the native AC Python interface.&lt;BR /&gt;&lt;A href="https://archicadapi.graphisoft.com/JSONInterfaceDocumentation/#GetAttributesByType" target="_blank"&gt;https://archicadapi.graphisoft.com/JSONInterfaceDocumentation/#GetAttributesByType&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Difference seems to be the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Native: Gives you only the GUIDs of attributes per type&lt;/LI&gt;
&lt;LI&gt;tAPIr: Gives you also Attribute Index &amp;amp; Attribute Name&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Since you probably only need the GUIDs it might be easier to just use the native interface.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 06:08:35 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2025-07-23T06:08:35Z</dc:date>
    <item>
      <title>Python and GUIDs of Composites</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-and-GUIDs-of-Composites/m-p/670634#M1128</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll start by shortly describing my goal:&lt;/P&gt;&lt;P&gt;Mapping information received from the skins of composites into properties.&lt;/P&gt;&lt;P&gt;For example i have a composite, containing a skin with the building material "Concrete", then i want to set my property "&lt;SPAN&gt;construction trade&lt;/SPAN&gt;" to "Concrete" (Loosely translated from german, but i hope the idea comes across)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Archicad doesen't allow to acces the skins of composites in the calculations. Only in the lists, so i turned to the python API if i can maybe achieve this in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My general idea:&lt;/P&gt;&lt;P&gt;1. Check which BuildingMaterials are contained in the composites&lt;/P&gt;&lt;P&gt;2. Check the Composites against a property of each Wall that contains the name of the composite&lt;/P&gt;&lt;P&gt;3. Map the property&amp;nbsp;"&lt;SPAN&gt;construction trade&lt;/SPAN&gt;" based on the Building materials inside of the composites.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly optimistic about step 2 and 3, as I have done similar things based on classifications. But currently I'm stuck at step 1 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I found GetCompositeAttributes that should be able to extract the skins of the composites in my archicad project. but i need the attribute IDs as inputs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;{
    &lt;SPAN class=""&gt;"command"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"API.GetCompositeAttributes"&lt;/SPAN&gt;,
    &lt;SPAN class=""&gt;"parameters"&lt;/SPAN&gt;: {
        &lt;SPAN class=""&gt;"attributeIds"&lt;/SPAN&gt;: [
            {
                &lt;SPAN class=""&gt;"attributeId"&lt;/SPAN&gt;: {
                    &lt;SPAN class=""&gt;"guid"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"29EE690D-089C-4573-94C8-DEC75CFA0950"&lt;/SPAN&gt;
                }
            },
            {
                &lt;SPAN class=""&gt;"attributeId"&lt;/SPAN&gt;: {
                    &lt;SPAN class=""&gt;"guid"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"00000000-1111-2222-3333-000000000000"&lt;/SPAN&gt;
                }
            }
        ]
    }
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;is there any way to get the guid's for all attributes currently in the file, similar to GetAllElements? The other way would probably to export the xml of my composites and Buildingmaterials and search through them inside the script. but this would be less stable, as it couldn't pick up changes in the template file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any ideas and input!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 15:49:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-and-GUIDs-of-Composites/m-p/670634#M1128</guid>
      <dc:creator>jonasm</dc:creator>
      <dc:date>2025-07-22T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Python and GUIDs of Composites</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-and-GUIDs-of-Composites/m-p/670653#M1129</link>
      <description>&lt;P&gt;Use &lt;A href="https://enzyme-apd.github.io/tapir-archicad-automation/archicad-addon/#:~:text=getattributesbytype1.1.3" target="_blank" rel="noopener"&gt;Tapir&lt;/A&gt; and their "&lt;SPAN class="command_name"&gt;GetAttributesByType&lt;/SPAN&gt;" command.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 22:32:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-and-GUIDs-of-Composites/m-p/670653#M1129</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2025-07-22T22:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python and GUIDs of Composites</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-and-GUIDs-of-Composites/m-p/670676#M1130</link>
      <description>&lt;P&gt;Hi Jonas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there's also a command with the same name in the native AC Python interface.&lt;BR /&gt;&lt;A href="https://archicadapi.graphisoft.com/JSONInterfaceDocumentation/#GetAttributesByType" target="_blank"&gt;https://archicadapi.graphisoft.com/JSONInterfaceDocumentation/#GetAttributesByType&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Difference seems to be the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Native: Gives you only the GUIDs of attributes per type&lt;/LI&gt;
&lt;LI&gt;tAPIr: Gives you also Attribute Index &amp;amp; Attribute Name&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Since you probably only need the GUIDs it might be easier to just use the native interface.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 06:08:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-and-GUIDs-of-Composites/m-p/670676#M1130</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2025-07-23T06:08:35Z</dc:date>
    </item>
  </channel>
</rss>

