cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

How happy I'd be if someone recorded how 2 create an API-button...

Mats Knutsson
Expert

...that triggered a py script in Archicad.

Let's say using Tapir > Publish....and make a nice AC button to run the script.

I can get AI to script stuff in python but am very interested in the effort of creating custom buttons/palettes in Archicad to make the scripts more available. I'm a video learner...not so much reading gazillions of text pages. Maybe I'm lazy but I learn from videos.

🙂

HP ZBook Fury 15,6 G8. 11gen i7-11800H 2.3GHz. 32 GB RAM. Nvidia RTX A3000 1GB. AC22-27 SWE.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Oh don't you worry. You'll be fine. I don't think you can break anything that hard that you have to do that on another PC.

In the end you are dealing with the Archicad project directly. So as long you start on a local file, if you don't know what you are doing, it's okay.

Wouldn't rush into a productive TW file right away, tho 😉

 

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

View solution in original post

6 REPLIES 6
Noemi Balogh
Community Admin
Community Admin

I think @runxel's Perisso project is the quick solution you are looking for: https://github.com/runxel/perisso 

Noémi Balogh

Senior Community Expert, Admin

runxel
Hero

Hi Mats!

Since you posted this in the C++ section... Do you actually want to have an add-on that has a little palette with a button?

Probably not.

I don't know of any video for Archicad directly. But that's not really needed anyway, because you essentially ask for a video on UI with Python. Just look around YouTube, I'm pretty sure you'll find something worthwhile.

 

As you might know we deliver Tapir with some scripts right out of the box. We use tkinter in the OrthoWall script since that comes with Python and does not need any external dependencies. You can look up the script to see how it's done.

UI is finicky tho, it might run well on Windows and not at all on Mac, and vice versa. Needs some testing. 😉

 

@FBumaye does something similiar to you I think. He deploys a company-wide tool that let's you run certain predefined functions.

He uses streamlit and pywebview instead of tkinter.

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Akos Somorjai
Graphisoft
Graphisoft

Hi Mats!

 

You can also turn on the Python palette in the Experimental features, and open it from the Window/Palettes menu – I think it is close to what you need.

 

Best, Akos

 

Experimental Python palette.png

Mats Knutsson
Expert

To answer all:

I use the Python addon but not Tapir ( I will use it for publishing and preferably automatic publishing). Will look into Perisso when I can squeeze time.

 

I just want to see the workflow how to create a small palette...could be anything really.

/M

HP ZBook Fury 15,6 G8. 11gen i7-11800H 2.3GHz. 32 GB RAM. Nvidia RTX A3000 1GB. AC22-27 SWE.

I'm managing our Archicad templates. Would you recommend fiddling with Tapir and custom stuff on another computer not to risk any mishaps in our tpl's?

HP ZBook Fury 15,6 G8. 11gen i7-11800H 2.3GHz. 32 GB RAM. Nvidia RTX A3000 1GB. AC22-27 SWE.
Solution

Oh don't you worry. You'll be fine. I don't think you can break anything that hard that you have to do that on another PC.

In the end you are dealing with the Archicad project directly. So as long you start on a local file, if you don't know what you are doing, it's okay.

Wouldn't rush into a productive TW file right away, tho 😉

 

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»