Skip to content

Tapir

Tapir is a free, open-source Archicad add-on. It adds a palette that runs Python scripts, and over a hundred extra commands to the Archicad JSON API. The studio's scripts and the AI assistant connection both depend on it.

Download for macOS Download for Windows

The buttons always download the latest release from GitHub. A new release comes out almost every week.

Archicad versions 25, 26, 27, 28, 29
Platforms macOS and Windows
Tested in the studio Tapir 1.8 with Archicad 29
Website archicad-api.com
Source and all releases github.com/ENZYME-APD/tapir-archicad-automation

Latest is not always tested

The studio's scripts were tested with the version in the table above. If a script stops working after a Tapir update, install that version again from the Releases page on GitHub.

Install

The installer finds every Archicad version on the computer and installs the matching add-on into each one.

  1. Quit Archicad.
  2. Install:
    • macOS: download TapirInstaller_Mac.zip, unzip it and open the app.
    • Windows: download TapirInstaller_Win.exe and run it. It asks for administrator rights. If SmartScreen warns about an unknown publisher, click More info › Run anyway.
  3. Start Archicad. A Tapir menu appears in the menu bar.

By hand

Use this route if the installer is blocked, or to install a specific version.

  1. From the Releases page, download the add-on file for your Archicad version:
    • macOS: TapirAddOn_AC29_Mac.zip
    • Windows: TapirAddOn_AC29_Win.apx
  2. Save it in a permanent place. Archicad loads it from there on every start.
  3. In Archicad: Options › Add-On Manager › Edit List of Available Add-Ons › Add, then select the file and click OK.

The Tapir palette

  1. Open Tapir › Tapir Palette.
  2. Pick a script in the drop-down list and click ▷ to run it. ProjectHealthCheck is a safe first try: it only reads the model.
  3. The first time you run a script, Tapir offers to install uv, the tool it uses to run Python. Accept. You don't need to install Python separately.
  4. The other buttons, left to right: Source opens the script's code, + adds a script to the list, − removes the selected script from the list.
  5. Manage Shortcuts puts up to six scripts in the Tapir menu as Run Script Shortcut 1–6. You can give these menu items keyboard shortcuts in Archicad's Work Environment.

Add the studio scripts

The studio scripts are kept on the server, in Úteis › Python Scripts. Everyone uses the same copy, so a new version or a settings change reaches every computer at once.

macOS /Volumes/Úteis/Python Scripts/
Windows \\ServerTM\Úteis\Python Scripts\
  1. Connect to the Úteis shared folder on ServerTM. It must be connected whenever you work in Archicad, as it is for the template.
  2. In the Tapir palette, click + and select the script in Úteis/Python Scripts, e.g. simplify_2d.py. You can also drag the file onto the palette.
  3. The script appears in the drop-down list. Select it and click ▷.

You only need to add each script once. When a new version is placed in the folder, the palette uses it automatically.

Read-only for most users

Everyone can read Python Scripts, but only the people who maintain the scripts can change it. Don't copy the scripts to your own computer: a local copy doesn't receive updates.

Add a whole folder (optional)

To make every script in the folder appear in the palette, including ones added later, list the folder in Tapir's settings file instead of adding scripts one by one:

  1. Open config.json in the Tapir folder inside your Documents folder. Tapir creates this file the first time it runs. Use TextEdit in plain-text mode, Notepad or VS Code.
  2. Add the folder to the localFolders list, and leave everything else in the file as it is:

    "localFolders": [
      {
        "path": "/Volumes/Úteis/Python Scripts",
        "displayName": "Ternullomelo"
      }
    ]
    
    • Windows: write the path with double backslashes: "\\\\ServerTM\\Úteis\\Python Scripts".
    • displayName is the name the palette shows for the folder. You can leave it out.
    • Close and reopen the palette. The scripts in the folder appear under Ternullomelo.

Check the file

One missing comma or quote stops Tapir from reading config.json. If the folder doesn't appear, paste the file into a JSON checker such as jsonlint.com.

Check that it works

With a project open, run this in Terminal (macOS) or PowerShell (Windows):

curl -s -X POST http://127.0.0.1:19723 -d "{\"command\":\"API.ExecuteAddOnCommand\",\"parameters\":{\"addOnCommandId\":{\"commandNamespace\":\"TapirCommand\",\"commandName\":\"GetProjectInfo\"},\"addOnCommandParameters\":{}}}"

A reply containing "succeeded": true means Archicad, its JSON API and Tapir are all working. When more than one Archicad is open, each one uses a different port between 19723 and 19743.