Archicad Python API
About automating tasks in Archicad using the Python API.

Am I Looking for an Archicad Python Programmer?

Edwin De Haan
Participant

We have been using Archicad (currently version 28) for a few years now, and we’re exploring the possibility of replacing an object with a favorite through scripting or coding. Could someone help me understand:

  1. How the table structure in Archicad is organized?
  2. What can function as a trigger?
  3. Where do I store the script?

If you think you can assist with even one of these (sub)questions, that would already be very helpful to me.

If you believe you can help with the entire task, that would be fantastic, and I’m open to discussing compensation.

Or, do you think it might be better to post this question in a group that focuses on GDL-related queries and answers?

1 REPLY 1

Hi Edwin,


Could you specify in more detail what you mean with replacing an object with a favorite?
Do you mean changing existing placed objects to use the values from a favorite which is based on the same GDL-object or something else?


I'm trying to answer your questions as best as I understand them right now:

  • How the table structure in Archicad is organized?
    Do you mean the table structure in the screenshot you've attached?
    Most of those entries are properties and can be changed via a Python scripts or an Add-On.
  • What can function as a trigger?
    For Python scripts you have the option to trigger the script manually through the Python Palette or through a terminal. Triggering the script on certain events inside Archicad is not possible to my knowledge. But with Add-Ons you can additionally "listen" to certain events like "Project Open" or "New Element placed" (and many more other such events) and then perform an action.
  • Where do I store the script?
    Python scripts can be stored anywhere. In the Python Palette you can select a folder from where to load the script from. If you are running it from a terminal I think you'll also make sure that the Python interpreter and your Archicad are running on the same machine.

@Edwin De Haan wrote:

Or, do you think it might be better to post this question in a group that focuses on GDL-related queries and answers?


How I understand your questions right now I don't think you'll need GDL coding, since you don't want to change the GDL object itself right?

Happy to help out with more of your tasks and questions here in the forum or also by mail or in a video call.
In case of the later you can reach me best via mail at bernd@archi-xt.com.

 

Best,
Bernd