<?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 - Handling Zone information in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332515#M167</link>
    <description>&lt;P&gt;Indeed, I'm for now going through this direction. Since the routines I mentioned are meant to be used only inside our firm, I think having the need to configure custom properties won't be an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 22:35:32 GMT</pubDate>
    <dc:creator>pedrocollares</dc:creator>
    <dc:date>2022-03-16T22:35:32Z</dc:date>
    <item>
      <title>Python - Handling Zone information</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332320#M164</link>
      <description>&lt;P&gt;I've been starting to dive into the Python integration in order to put up a few routines regarding zone information in our firm. I'm a little bit familiar with the programming language itself, but I'm clueless on how to get the info from the elements.&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="pedrocollares_0-1647320554151.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19679i5B231101E3579E85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_0-1647320554151.png" alt="pedrocollares_0-1647320554151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting out with this, to get a list of all Zones in the project. Then there's a few things I need to be able to access in each of those zones. Which are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Zone name&lt;/LI&gt;&lt;LI&gt;Layer to which they belong&lt;/LI&gt;&lt;LI&gt;Calculated area&lt;/LI&gt;&lt;LI&gt;Zone category&lt;/LI&gt;&lt;LI&gt;Home Story index&lt;/LI&gt;&lt;LI&gt;Home Story name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not even sure if such information is available through the Python integration, though, in case they are, it would be good if I could, inside that 'element' loop assign them to variables so I can handle them across the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope there's a way to do such. Thanks in advance! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 05:42:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332320#M164</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2022-03-15T05:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python - Handling Zone information</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332393#M165</link>
      <description>&lt;P&gt;Updates on my own thread&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently all those worked:&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="pedrocollares_0-1647402170070.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19696i523C254CA4C96F47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_0-1647402170070.png" alt="pedrocollares_0-1647402170070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They were put out correctly at the listener:&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="pedrocollares_1-1647402206809.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19697i44360CC2DA2527E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_1-1647402206809.png" alt="pedrocollares_1-1647402206809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, as it seems, there is no Built-in property available to get the Home Story Index. I think I'll handle that by doing a comparison between the elevation to Project Zero and the Project's Story elevation&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="pedrocollares_2-1647402404461.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19698i745C025E94445440/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_2-1647402404461.png" alt="pedrocollares_2-1647402404461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has directions on how to obtain those Home Story info?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 03:47:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332393#M165</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2022-03-16T03:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python - Handling Zone information</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332426#M166</link>
      <description>&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was a discussion about this a few months ago which I think is relevant for what you want to do: &lt;A href="https://community.graphisoft.com/t5/Developer-forum/Home-Story-Name-in-Python/m-p/312989" target="_blank" rel="noopener"&gt;https://community.graphisoft.com/t5/Developer-forum/Home-Story-Name-in-Python/m-p/31298&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It boils down to 2 solutions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make expression properties which return the home story name and/or home story index&lt;/LI&gt;&lt;LI&gt;Make a C++ add-on which exposes additional API commands to Python (see for example &lt;A href="https://github.com/tlorantfy/Archicad-additional-json-commands" target="_blank" rel="noopener"&gt;https://github.com/tlorantfy/Archicad-additional-json-commands&lt;/A&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The first option is easier to realize but needs extra steps in each project. The second option needs additional expertise with C++ Add-Ons.&lt;BR /&gt;&lt;BR /&gt;Best, Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 10:10:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332426#M166</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2022-03-16T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python - Handling Zone information</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332515#M167</link>
      <description>&lt;P&gt;Indeed, I'm for now going through this direction. Since the routines I mentioned are meant to be used only inside our firm, I think having the need to configure custom properties won't be an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 22:35:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-Handling-Zone-information/m-p/332515#M167</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2022-03-16T22:35:32Z</dc:date>
    </item>
  </channel>
</rss>

