Automation for Archicad

Archicad, on autopilot.

Number every door along a line. Colour the model by any property. Check a project before it goes out. Tapir adds hundreds of commands to Archicad and a palette that runs scripts in one click, and lets AI assistants such as Claude work in your model.

Then run the installer, start Archicad and follow Get started to your first script, in about ten minutes.

100% freeOpen source (MIT)Watch the tutorialsAll downloads

A floor plan of six rooms on which a script numbers the doors, colours the rooms by area or marks problems 7.105.208.105.501.404.90 Studio0133.00 m² Office0225.00 m² Meeting0238.00 m² WC0514.08 m² Store0619.36 m² Kitchen0751.04 m² Corridor04 · 23.52 m² D01 D02 D03 D04 D05 D06
Automatic Numbering Based on Polyline · 6 doors numbered D01–D06

How it works.

Tapir is an add-on that runs inside Archicad. Grasshopper, Python scripts and AI assistants send it commands, and it carries them out in the open project.

Start where you already work.

Three of the four need no programming. All of them use the same commands.

For architects

Scripts in the palette

Open the Tapir palette, pick a script and press Run Script. The built-in scripts are there from the start, and more are shared by the community.

Browse scripts
For everyone

An AI assistant

Connect Claude, Codex, Antigravity or a local model through the Tapir MCP server, then ask in plain words: list the walls, fill in properties, check the model.

Connect an AI assistant
For computational designers

Grasshopper

The tapir package in Rhino's Package Manager. Walls, doors, windows and more as components that read and change the model, with the names of Archicad's settings dialogs.

Grasshopper guide

Six jobs it already does.

Five built-in scripts of the Tapir palette and one workflow script, each a short Python file you can read and change.

  • Built-in script

    Number elements along a line

    Select a polyline and the doors, zones or objects to number. Each one gets its Element ID in the order the polyline passes it.

    Changes the model SetPropertyValuesOfElements

    In the palette: AutomaticNumberingBasedOnPolyline.py

  • Built-in script

    Colour the model by a property

    Pick a property; every element gets a colour for its value, with a legend of the values and how many elements have each. Number values can be grouped into ranges.

    Read only HighlightElements

    In the palette: PropertyHighlighter.py

  • Built-in script

    Check a project before it goes out

    Lists elements without an ID, zones with the same number, unclassified and duplicate elements, empty stories and unused layers. Export the list to Excel or turn it into Issues.

    Read only GetClassificationsOfElements

    In the palette: ProjectHealthCheck.py

  • Built-in script

    Publish on a schedule

    Publishes the chosen Publisher Sets now or on a schedule, every few hours or daily at a set time. It can receive the Teamwork changes and update the drawings first, and logs every run.

    Writes files PublishPublisherSet

    In the palette: BatchPublisher.py

  • Built-in script

    Tidy up the View Map

    Finds the views that are neither placed on a layout nor published, and moves the ones you choose into a separate folder that keeps their folder structure.

    Changes the model API.MoveNavigatorItem

    In the palette: UnusedViewCleaner.py

  • Workflow

    Export the model to OBJ

    Writes the 3D model, or only the selected elements, to a Wavefront OBJ file, one object per element, for Blender and other tools.

    Writes files Get3DGeometryOfElements

    export_obj.py

What you can do today.

Twelve kinds of work offices automate with Tapir, from a palette script to a Grasshopper definition. Each leads to its tutorial, script or guide.

One file, no packages.

With a project open, Archicad answers JSON commands on http://127.0.0.1:19723. Tapir's commands go through Archicad's API.ExecuteAddOnCommand. Save this as walls.py and run it with any Python 3.

With several Archicads open, the next ones answer on 19724, 19725 and so on.

Your first Python script, step by step

walls.pyport 19723
import json
import urllib.request

def run_tapir_command(command, parameters=None):
    body = json.dumps({
        'command': 'API.ExecuteAddOnCommand',
        'parameters': {
            'addOnCommandId': {'commandNamespace': 'TapirCommand', 'commandName': command},
            'addOnCommandParameters': parameters or {}
        }
    }).encode('utf-8')
    request = urllib.request.Request('http://127.0.0.1:19723', body, {'Content-Type': 'application/json'})
    with urllib.request.urlopen(request) as response:
        result = json.loads(response.read())
    if not result['succeeded']:
        raise RuntimeError(result['error'])
    return result['result']['addOnCommandResponse']

print(run_tapir_command('GetAddOnVersion'))
walls = run_tapir_command('GetElementsByType', {'elementType': 'Wall'})['elements']
print(len(walls),'walls')

Where to go next.

Your first script, the reference, sharing your own scripts, and the people who build Tapir.