<?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: running Python code externally on multiple opened Archicad files in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335703#M192</link>
    <description>&lt;P&gt;BTW--- in the Python Palette, if you click on the info icon, it will list the port that the present instance of Archicad is using.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2022 09:37:48 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2022-04-15T09:37:48Z</dc:date>
    <item>
      <title>running Python code externally on multiple opened Archicad files</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335597#M189</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I have more than one Archicad file open, and&amp;nbsp;I run the python code externally (not in the Python Palette inside Archicad) the code runs on the first file I opened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I run the code in another opened file? Is there a way in python API to list the opened Archicad files, so that I open my python program externally and then choose in which file the python code runs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 11:35:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335597#M189</guid>
      <dc:creator>Ady84a</dc:creator>
      <dc:date>2022-04-14T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: running Python code externally on multiple opened Archicad files</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335625#M190</link>
      <description>&lt;P&gt;Question for Graphisoft: &amp;nbsp;is this due to the same bit of software design that opens a Grasshopper connection on the first AC session opened which may not be the session I want to run the Grasshopper connection in? It sounds eerily similar and both issues need to be fixed.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 14:00:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335625#M190</guid>
      <dc:creator>Aaron Bourgoin</dc:creator>
      <dc:date>2022-04-14T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: running Python code externally on multiple opened Archicad files</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335642#M191</link>
      <description>&lt;P&gt;FYI --- For two running instances of Archicad, Archicad will use separate ports,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the port for your script manually as in:&lt;/P&gt;&lt;P&gt;conn = ACConnection.connect( 19723 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe ports are assigned serially from 19723 - 19744 but another application could take a port #&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 15:57:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335642#M191</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2022-04-14T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: running Python code externally on multiple opened Archicad files</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335703#M192</link>
      <description>&lt;P&gt;BTW--- in the Python Palette, if you click on the info icon, it will list the port that the present instance of Archicad is using.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 09:37:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/running-Python-code-externally-on-multiple-opened-Archicad-files/m-p/335703#M192</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2022-04-15T09:37:48Z</dc:date>
    </item>
  </channel>
</rss>

