API tutorials?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-11
08:50 PM
- last edited on
‎2024-09-26
12:21 PM
by
Doreena Deng
‎2021-02-11
08:50 PM
Hi,
I'm looking for a tutorial how to make a simple palette with buttons in Archicad and connect python scripts to those buttons.
/Mats
I'm looking for a tutorial how to make a simple palette with buttons in Archicad and connect python scripts to those buttons.
/Mats
AC 25 SWE Full
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-12 01:48 AM
‎2021-02-12
01:48 AM
The only example of embedding a python script in a C++ API Add-On is in the communication Manager example under Do_ExecutePythonScript. It uses the old 23 version of Python Script which is no longer used in 24. Also the upgrade of 22 & 23 no longer accepts the old version of the Python Add-On PythonSnippets.apx. Soooo no longer works, at least for me.
You can use Tkinter as a external dialog with buttons to execute Python scripts -- works fine but the interface is more crude appearing than native Archicad pallets.
At this point, i doubt if anyone other than Graphisoft knows (and their not talking) if there will be any advances in embedded Python in 25?
You can use Tkinter as a external dialog with buttons to execute Python scripts -- works fine but the interface is more crude appearing than native Archicad pallets.
At this point, i doubt if anyone other than Graphisoft knows (and their not talking) if there will be any advances in embedded Python in 25?
Gerry
Windows 11 - Visual Studio 2022; ArchiCAD 27
Windows 11 - Visual Studio 2022; ArchiCAD 27

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-12 08:33 AM
‎2021-02-12
08:33 AM
poco2013 wrote:We've used Tkinter for some tests. We have put lots of effort in the Python development in-house but now we wait for deeper integration with Archicad. Meanwhile I want to be prepared from a user point of view which is the reason I asked for this. I basically want a palette where we can arrange our clever scripts in a regular Archicad environment that everyone recognizes.
The only example of embedding a python script in a C++ API Add-On is in the communication Manager example under Do_ExecutePythonScript. It uses the old 23 version of Python Script which is no longer used in 24. Also the upgrade of 22 & 23 no longer accepts the old version of the Python Add-On PythonSnippets.apx. Soooo no longer works, at least for me.
You can use Tkinter as a external dialog with buttons to execute Python scripts -- works fine but the interface is more crude appearing than native Archicad pallets.
At this point, i doubt if anyone other than Graphisoft knows (and their not talking) if there will be any advances in embedded Python in 25?
AC 25 SWE Full
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-12 12:26 PM
‎2021-02-12
12:26 PM
I expect, that, you are already aware of this, but I'll mention it for those interested.If you want a more professional interface , you might check out "PyQt5". PyQt5 did not work with the 23 version but works fine with archicad 24. It is more versatile and professional but also still, does not have the minimalist appearance of the archicad dialogs.
It is free for testing and for individual use, but does require a license for commercial use.
Back to Archicad, I doubt strongly that Graphisoft will ever open up their GUI to Python, and embedding hundreds/thousand lines of python code in a add-on isn't practical.This creates a quandary and it is unfortunate that Graphisoft chooses not to dialog on constructive suggestions, unlike the 23 Beta?
It is free for testing and for individual use, but does require a license for commercial use.
Back to Archicad, I doubt strongly that Graphisoft will ever open up their GUI to Python, and embedding hundreds/thousand lines of python code in a add-on isn't practical.This creates a quandary and it is unfortunate that Graphisoft chooses not to dialog on constructive suggestions, unlike the 23 Beta?
Gerry
Windows 11 - Visual Studio 2022; ArchiCAD 27
Windows 11 - Visual Studio 2022; ArchiCAD 27