<?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: Archicad 24 - Python in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261606#M611</link>
    <description>&lt;BLOCKQUOTE&gt;TMA_80 wrote:&lt;BR /&gt;
From the getting started pdf (  it is somhow strange to announce a feature and make it invisible ?!!!) :&lt;BR /&gt;
&lt;BR /&gt;
To use Python Palette, switch on the Python Palette Experimental Feature on the Work Environment dialog. The palette can be opened from the Palettes menu.&lt;BR /&gt;
1. Launch ARCHICAD&lt;BR /&gt;
2. Go to Options &amp;gt; Work Environment &amp;gt; More Options&lt;BR /&gt;
3. Under Experimental Features, switch on "Enable Python Palette" checkbox&lt;BR /&gt;
4. Open the Python Palette from Window &amp;gt; Palettes &amp;gt; Python Palette
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Yes, that's clear. Now I wanted to put the icon on my customized toolbar. However, this does not work as seen in the screenshot.</description>
    <pubDate>Thu, 16 Jul 2020 06:49:49 GMT</pubDate>
    <dc:creator>JSN</dc:creator>
    <dc:date>2020-07-16T06:49:49Z</dc:date>
    <item>
      <title>Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261603#M608</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;1) Is it possible that I cannot add the Python palette to any toolbar as it is an exerimental feature?&lt;BR /&gt;&lt;BR /&gt;2) Here (&lt;A href="https://graphisoft.com/downloads/python#try" target="_blank" rel="noopener"&gt;https://graphisoft.com/downloads/python#try&lt;/A&gt;) the example "Excel file import" seems to be wrongly linked as it leads to the Excel file export example when you hit download.&lt;BR /&gt;&lt;BR /&gt;3) Are the Python Snippets from the experimental addon for 23.3000 not supported anymore as I get several traceback errors or might this be a general permiossion issue of my IT system?&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 09:57:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261603#M608</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2021-09-15T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261604#M609</link>
      <description>&lt;FONT color="#000080"&gt;From the getting started pdf (  it is somhow strange to announce a feature and make it invisible ?!!!) :&lt;BR /&gt;
&lt;BR /&gt;
To use Python Palette, switch on the Python Palette Experimental Feature on the Work Environment dialog. The palette can be opened from the Palettes menu.&lt;BR /&gt;
1. Launch ARCHICAD&lt;BR /&gt;
2. Go to Options &amp;gt; Work Environment &amp;gt; More Options&lt;BR /&gt;
3. Under Experimental Features, switch on "Enable Python Palette" checkbox&lt;BR /&gt;
4. Open the Python Palette from Window &amp;gt; Palettes &amp;gt; Python Palette&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
[edit:] even if it is activitated, it is still impossible to add the python to an existing or new palette</description>
      <pubDate>Wed, 15 Jul 2020 16:47:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261604#M609</guid>
      <dc:creator>TMA_80</dc:creator>
      <dc:date>2020-07-15T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261605#M610</link>
      <description>&lt;BLOCKQUOTE&gt;JSN wrote:&lt;BR /&gt;
3) Are the Python Snippets from the experimental addon for 23.3000 not supported anymore as I get several traceback errors or might this be a general permiossion issue of my IT system?
&lt;/BLOCKQUOTE&gt;

FYI:&lt;BR /&gt;
&lt;BR /&gt;
The Python Snippets from the experimental version are not supported in the new version in 24. The new version uses a http: interface which can be used either internally in Archicad or completely external with a open Archicah instance.&lt;BR /&gt;
&lt;BR /&gt;
However, the old experimental snippets can be easily modified to work by just adding the appreciate "connect" commands to open the interface.&lt;BR /&gt;
&lt;BR /&gt;
A revised (new) excel example is given on the new Python site which will accomplish this.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://graphisoft.com/downloads/python" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://graphisoft.com/downloads/python" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;https://graphisoft.com/downloads/python&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;https://graphisoft.com/downloads/python&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Do You have any specific questions?</description>
      <pubDate>Wed, 15 Jul 2020 17:34:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261605#M610</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2020-07-15T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261606#M611</link>
      <description>&lt;BLOCKQUOTE&gt;TMA_80 wrote:&lt;BR /&gt;
From the getting started pdf (  it is somhow strange to announce a feature and make it invisible ?!!!) :&lt;BR /&gt;
&lt;BR /&gt;
To use Python Palette, switch on the Python Palette Experimental Feature on the Work Environment dialog. The palette can be opened from the Palettes menu.&lt;BR /&gt;
1. Launch ARCHICAD&lt;BR /&gt;
2. Go to Options &amp;gt; Work Environment &amp;gt; More Options&lt;BR /&gt;
3. Under Experimental Features, switch on "Enable Python Palette" checkbox&lt;BR /&gt;
4. Open the Python Palette from Window &amp;gt; Palettes &amp;gt; Python Palette
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Yes, that's clear. Now I wanted to put the icon on my customized toolbar. However, this does not work as seen in the screenshot.</description>
      <pubDate>Thu, 16 Jul 2020 06:49:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261606#M611</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2020-07-16T06:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261607#M612</link>
      <description>&lt;BLOCKQUOTE&gt;poco2013 wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;JSN wrote:&lt;BR /&gt;
3) Are the Python Snippets from the experimental addon for 23.3000 not supported anymore as I get several traceback errors or might this be a general permiossion issue of my IT system?
&lt;/BLOCKQUOTE&gt;

FYI:&lt;BR /&gt;
&lt;BR /&gt;
The Python Snippets from the experimental version are not supported in the new version in 24. The new version uses a http: interface which can be used either internally in Archicad or completely external with a open Archicah instance.&lt;BR /&gt;
&lt;BR /&gt;
However, the old experimental snippets can be easily modified to work by just adding the appreciate "connect" commands to open the interface.&lt;BR /&gt;
&lt;BR /&gt;
A revised (new) excel example is given on the new Python site which will accomplish this.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://graphisoft.com/downloads/python" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://graphisoft.com/downloads/python" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;https://graphisoft.com/downloads/python&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;https://graphisoft.com/downloads/python&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Do You have any specific questions?
&lt;/BLOCKQUOTE&gt;

- Ah yes thx for pointing this out, I will check this out out by modifying the experimental scripts later.&lt;BR /&gt;
&lt;BR /&gt;
- I have found the example page and just wanted to notify that the Excel Import Example download link does not work as expected as it gives me the same file as the previous link for the Excel Export Example and therefore there is no excel_import.py in the folder ....&lt;BR /&gt;
&lt;BR /&gt;
- Moreover the "Room Data Sheet Export" example throws me back some errors which may or may not related to my system but let me just copy here the error code.&lt;BR /&gt;

&lt;PRE&gt;Traceback (most recent call last):
  File "C:\Test\Room report generator test\room_report.py", line 198, in &amp;lt;module&amp;gt;
    wbFiller.SaveWorkbook(outputPath)
  File "C:\Test\Room report generator test\room_report.py", line 116, in SaveWorkbook
    self._fillWorkbook(workbook)
  File "C:\Test\Room report generator test\room_report.py", line 169, in _fillWorkbook
    worksheet = workbook.copy_worksheet(base)
  File "C:\Program Files\Python37\lib\site-packages\openpyxl\workbook\workbook.py", line 419, in copy_worksheet
    cp.copy_worksheet()
  File "C:\Program Files\Python37\lib\site-packages\openpyxl\worksheet\copier.py", line 41, in copy_worksheet
    self.target.merged_cells = copy(self.source.merged_cells)
  File "C:\Program Files\Python37\lib\copy.py", line 88, in copy
    return copier(x)
  File "C:\Program Files\Python37\lib\site-packages\openpyxl\worksheet\cell_range.py", line 503, in __copy__
    n.ranges.append(copy(r))
  File "C:\Program Files\Python37\lib\copy.py", line 88, in copy
    return copier(x)
  File "C:\Program Files\Python37\lib\site-packages\openpyxl\worksheet\cell_range.py", line 150, in __copy__
    title=self.title)
TypeError: __init__() got an unexpected keyword argument 'min_col'

=== Process aborted ===
&lt;/PRE&gt;

Seems like that it files to write the file, but the "Excel Export" script is workwing flawlessly so I don't think that it is lacking permissions. Maybe someone can tell me more about where to continue investigating. Thx!</description>
      <pubDate>Thu, 16 Jul 2020 07:15:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261607#M612</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2020-07-16T07:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261608#M613</link>
      <description>I'm getting the same errors for the room report. Seems to be failing on Opepyxl function __copy__ with error unexpected keyword argument 'min_col' All the other trace backs are just getting there.&lt;BR /&gt;
&lt;BR /&gt;
Maybe different versions? I expect Archicad will have to troubleshoot</description>
      <pubDate>Thu, 16 Jul 2020 08:41:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261608#M613</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2020-07-16T08:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261609#M614</link>
      <description>I've got the same error and, also , yes, it is obviously, impossible to add the python to an existing or a new  palette ( a bug or an  intentionnal limitation ?)</description>
      <pubDate>Thu, 16 Jul 2020 08:53:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261609#M614</guid>
      <dc:creator>TMA_80</dc:creator>
      <dc:date>2020-07-16T08:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261610#M615</link>
      <description>Ok, well so at least everybody fails attempting the things mentioned previously and it seems like now it's Graphisoft's turn.</description>
      <pubDate>Thu, 16 Jul 2020 10:12:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261610#M615</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2020-07-16T10:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261611#M616</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your question and your enthusiasm with Python!&lt;BR /&gt;
&lt;BR /&gt;
First, the Excel File Importer link on our website must be incorrect. Here should be the correct link: &lt;A href="https://graphisoft.com/dl/Python/Excel%20file%20importer.zip" target="_blank"&gt;&lt;LINK_TEXT text="https://graphisoft.com/dl/Python/Excel% ... porter.zip"&gt;https://graphisoft.com/dl/Python/Excel%20file%20importer.zip&lt;/LINK_TEXT&gt;&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Regarding the error with Room Report Generator script, unfortunately, I encounter the same issue! Let me forward this question to our developers for further investigation. As soon as I have an answer, I will let you know!&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
Minh</description>
      <pubDate>Fri, 17 Jul 2020 12:01:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261611#M616</guid>
      <dc:creator>Minh Nguyen</dc:creator>
      <dc:date>2020-07-17T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261612#M617</link>
      <description>Dear Guys,&lt;BR /&gt;
&lt;BR /&gt;
Our Room Report Generator script uses openpyxl PyPI package to import/export Excel files. This is one of the biggest advantages of python, plenty of libraries are available. Our python scripts automatically install the latest version of dependent python packages.&lt;BR /&gt;
Unfortunately the developers of openpyxl published a new version (3.0.4) which contains a bug. Now we reported this issue to the developers of openpyxl, hopefully they will fix it soon.&lt;BR /&gt;
So when you ran our room_report.py script and it detected that openpyxl is not installed on your computer, the latest buggy version was installed.&lt;BR /&gt;
&lt;BR /&gt;
The good news is that you don't have to wait till a new version of openpyxl comes out, because you can downgrade to the previous version (3.0.3):&lt;BR /&gt;
Open a Command Prompt on Windows or a Terminal on macOS and execute the following commands:
&lt;PRE&gt;pip3 uninstall openpyxl&lt;/PRE&gt;
After this first command it will ask for a confirmation, type in y to proceed.
&lt;PRE&gt;pip3 install -Iv openpyxl==3.0.3&lt;/PRE&gt;

In-house at Graphisoft our tests used (and still uses) the previous version of openpyxl (3.0.3), that's the reason why our tests passed and we didn't detect this issue. We have to fix our tests to always use the latest 3rd party libraries.&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for reporting us this issue!</description>
      <pubDate>Fri, 17 Jul 2020 13:21:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261612#M617</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-07-17T13:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261613#M618</link>
      <description>Downgrading the openpyxl module fixed this issue and it works now. I will try to find some time to have a closer look on the given examples and I am sure that further questions will arise in the near future. Thx for now.</description>
      <pubDate>Fri, 17 Jul 2020 15:10:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261613#M618</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2020-07-17T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261614#M619</link>
      <description>&lt;BLOCKQUOTE&gt;JSN wrote:&lt;BR /&gt;2) Here (&lt;A href="https://graphisoft.com/downloads/python#try" target="_blank"&gt;https://graphisoft.com/downloads/python#try&lt;/A&gt;) the example "Excel file import" seems to be wrongly linked as it leads to the Excel file export example when you hit download.&lt;/BLOCKQUOTE&gt;

Thank you for reporting us this issue!&lt;BR /&gt;
The link was fixed, now you can download the "Excel File Importer" script package from the site.</description>
      <pubDate>Mon, 20 Jul 2020 09:23:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261614#M619</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-07-20T09:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261615#M620</link>
      <description>Thx!&lt;BR /&gt;
&lt;BR /&gt;
by the way, is it planned to provide more sample scripts? Imho they are a good start to familiarize with the syntax.</description>
      <pubDate>Tue, 21 Jul 2020 13:33:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261615#M620</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2020-07-21T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261616#M621</link>
      <description>&lt;BLOCKQUOTE&gt;JSN wrote:&lt;BR /&gt;by the way, is it planned to provide more sample scripts?&lt;/BLOCKQUOTE&gt;
Yes, of course! Our plan is to make more example scripts, especially more simple scripts to help the completely beginners.&lt;BR /&gt;
Our long-term plan is to implement a python script-exchange site, where anybody can upload their script, Graphisoft can review them, anybody can comment and download the uploaded scripts.</description>
      <pubDate>Sun, 26 Jul 2020 19:28:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261616#M621</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-07-26T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261617#M622</link>
      <description>That's what I wanted to hear  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 27 Jul 2020 13:55:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Archicad-24-Python/m-p/261617#M622</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2020-07-27T13:55:04Z</dc:date>
    </item>
  </channel>
</rss>

