<?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 Element GUID extract from python cannot find using Find and Select in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/361030#M283</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to extract some element GUID via python using&amp;nbsp; acc.GetElementsByType("Zone"), however the GUID generated I can't find any using find&amp;amp;select function within Archicad. May I know if the GUID obtained from the python script is shown somewhere in element information? Thanks.&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="excel_export.JPG" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31309i538ABC53C1664370/image-size/medium?v=v2&amp;amp;px=400" role="button" title="excel_export.JPG" alt="excel_export.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="find_and_select.JPG" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31310i7010E6F6637568CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="find_and_select.JPG" alt="find_and_select.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;  &lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 10:12:10 GMT</pubDate>
    <dc:creator>Yh1CKAEN</dc:creator>
    <dc:date>2024-09-26T10:12:10Z</dc:date>
    <item>
      <title>Element GUID extract from python cannot find using Find and Select</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/361030#M283</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to extract some element GUID via python using&amp;nbsp; acc.GetElementsByType("Zone"), however the GUID generated I can't find any using find&amp;amp;select function within Archicad. May I know if the GUID obtained from the python script is shown somewhere in element information? Thanks.&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="excel_export.JPG" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31309i538ABC53C1664370/image-size/medium?v=v2&amp;amp;px=400" role="button" title="excel_export.JPG" alt="excel_export.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="find_and_select.JPG" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31310i7010E6F6637568CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="find_and_select.JPG" alt="find_and_select.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 10:12:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/361030#M283</guid>
      <dc:creator>Yh1CKAEN</dc:creator>
      <dc:date>2024-09-26T10:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Element GUID extract from python cannot find using Find and Select</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/364618#M284</link>
      <description>&lt;P&gt;I don't know if it is related, I am new to Archicad, but I also am observing properties' guid that aren't otherwise clear to me, their guid is nowhere to find.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I can fetch all properties:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;allPropIDs = acc.GetAllPropertyIds() # 693 props
# [PropertyIdArrayItem {'propertyId': {'guid': '4A0D773E-33FB-4CF7-98FD-561044BCB21D'}}, ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I&amp;nbsp;can fetch one room:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;rooms = acc.GetElementsByType("Zone")
oneRoom = rooms[0]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But if I fetch the room's properties, I get over 400 props, which doesn't make any sense to me, does it eventually include other parameters? GDL?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;props = acc.GetAllPropertyIdsOfElements([oneRoom]) # returns a list with 1 PropertyIdsOfElementWrapper
# [PropertyIdsOfElementWrapper {
# 'propertyIdsOfElement':
# {'elementId': {'guid': '4BFA60B2-5F49-416E-81D3-B02FA9C0BE41'},
# 'propertyIds': [{'propertyId': {'guid': '635169F9-62C9-4DD9-A64A-6E99128F1298'}}, {'propertyId': {'guid': '40D0D48E-5D5F-4E88-B44C-5EE49B21 ...

ids = props[0].propertyIdsOfElement.propertyIds # 414 props? Ehh?
# [PropertyIdArrayItem {'propertyId': {'guid': '635169F9-62C9-4DD9-A64A-6E99128F1298'}}, PropertyIdArrayItem {'propertyId': {'guid': '40D0D48E-5D5F-4E88-B44C-5EE49B21E78F'}}, ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... and then fetch their details,&amp;nbsp;I get a huge number of errors with a few valid entries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dets = acc.GetDetailsOfProperties(ids) # list of PropertyDefinitionWrapper
# [ErrorItem {'error': {'code': 6702, 'message': 'Property definition not supported (property definition guid: "635169F9-62C9-4DD9-A64A-6E99128F1298")'}}, ErrorItem
print(dets)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here the output with more readability, two items as example. And BTW, is there somewhere a list of the error codes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ErrorItem {'error': {'code': 6702, 'message': 'Property definition not supported (property definition guid: "8E3AFC90-5D05-4F80-B47B-A0862386F2A3")'}}, 

...

PropertyDefinitionWrapper {'propertyDefinition': {'group': {'propertyGroupId': {'guid': '1B193DB4-31FE-4DCA-93FF-3125D79B19C0'}, 'name': 'Raum'}, 'name': 'Berechnete Fläche (NRF)', 'description': '', 'isEditable': False, 'type': 'area', 'propertyId': {'guid': '9F8B3DFA-39D7-472D-A258-B988427C7EF9'}}}, 

....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And now I come to the point. If I then search for one of the error guid in the list obtained with&amp;nbsp;acc.GetAllPropertyIds, I can't find this guid.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 06:16:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/364618#M284</guid>
      <dc:creator>_c_</dc:creator>
      <dc:date>2022-12-10T06:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Element GUID extract from python cannot find using Find and Select</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/364691#M285</link>
      <description>&lt;P&gt;After several days I found out the real reason is the python script may not work correctly if another user(s) is using Archicad in the same machine, maybe all users share the same memory area.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 02:57:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/364691#M285</guid>
      <dc:creator>Yh1CKAEN</dc:creator>
      <dc:date>2022-12-12T02:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Element GUID extract from python cannot find using Find and Select</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/364695#M286</link>
      <description>&lt;P&gt;In my case I am alone and using a demo version.&lt;/P&gt;&lt;P&gt;Still, I see tons of unclear property IDs that resolve to nothing (error).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 05:26:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Element-GUID-extract-from-python-cannot-find-using-Find-and/m-p/364695#M286</guid>
      <dc:creator>_c_</dc:creator>
      <dc:date>2022-12-12T05:26:42Z</dc:date>
    </item>
  </channel>
</rss>

