# bim-visual-programming-automation

bim-visual-programming-automation automates BIM tasks with Dynamo Python nodes and Revit API routines. Extracts element quantities, calculates take-offs, and batch updates parameters.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 126 installs · ★ 434 repo stars
- Author: datadrivenconstruction
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/bim-visual-programming-automation/SKILL.md
- Updated: 2026-10-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/bim-visual-programming-automation

## What it does

This skill equips coding agents with Python node scripts tailored for Dynamo and the Autodesk Revit API. It handles element filtering across structural categories like walls, floors, doors, and columns, converting raw imperial data into metric lengths, areas, and volumes for quantity take-offs.

The scripts rely on `clr`, RevitServices, and RevitAPI transactions via `FilteredElementCollector`. Metadata marks this skill for Windows environments with `python3`, meaning the workflows require Autodesk Revit and Dynamo to run.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill bim-visual-programming-automation -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/bim-visual-programming-automation/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/bim-visual-programming-automation/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill bim-visual-programming-automation -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/bim-visual-programming-automation/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill bim-visual-programming-automation -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/bim-visual-programming-automation/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction 5_DDC_Innovative/bim-visual-programming-automation/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/bim-visual-programming-automation/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill bim-visual-programming-automation -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --path 5_DDC_Innovative/bim-visual-programming-automation
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/bim-visual-programming-automation/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill bim-visual-programming-automation -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/bim-visual-programming-automation/SKILL.md

## When to use it
- extract element attributes and levels from Revit models
- calculate metric quantity take-off data for walls and floors
- batch edit instance parameters across selected elements
- export category data into structured lists for external tools

## Example prompts
- Generate a Dynamo Python node to extract all wall areas in square meters
- Create a quantity take-off routine for floors using Revit API
- Write a batch parameter update function with transaction handling

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 9981ae052ac043ba.

BEGIN THIRD-PARTY FILE 9981ae052ac043ba
````text
---
name: "bim-visual-programming-automation"
description: "Automate BIM workflows using visual programming and Python. Create parametric schedules, export data, batch modify elements, and integrate with external data sources."
homepage: "https://datadrivenconstruction.io"
metadata: {"openclaw": {"emoji": "🚀", "os": ["win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}}
---
# BIM Visual Programming Automation

## Overview

This skill provides visual programming scripts and Python nodes for automating BIM workflows. Extract data, modify elements in batch, generate schedules, and integrate with external systems.

> **Note:** Examples use Autodesk® Revit® and Dynamo™ APIs. Autodesk, Revit, and Dynamo are registered trademarks of Autodesk, Inc.

**Key Capabilities:**
- Batch element modification
- Data export/import
- Schedule generation
- Parameter management
- External data integration
- Automated QTO

## Quick Start (Dynamo Python)

```python
# Dynamo Python Script - Export all walls to Excel
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from Autodesk.Revit.DB import FilteredElementCollector, BuiltInCategory

doc = DocumentManager.Instance.CurrentDBDocument

# Get all walls
collector = FilteredElementCollector(doc)
walls = collector.OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType().ToElements()

# Extract data
wall_data = []
for wall in walls:
    wall_data.append({
        'id': wall.Id.IntegerValue,
        'name': wall.Name,
        'length': wall.get_Parameter(BuiltInParameter.CURVE_ELEM_LENGTH).AsDouble() * 0.3048,
        'area': wall.get_Parameter(BuiltInParameter.HOST_AREA_COMPUTED).AsDouble() * 0.0929
    })

OUT = wall_data
```

## Element Data Extraction

### Comprehensive Element Extractor

```python
# Dynamo Python Node - Extract all element data
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitServices')
clr.AddReference('RevitNodes')

from RevitServices.Persistence import DocumentManager
from Autodesk.Revit.DB import *
import Revit
clr.ImportExtensions(Revit.Elements)

doc = DocumentManager.Instance.CurrentDBDocument

def get_element_data(element):
    """Extract data from Revit element"""
````
END THIRD-PARTY FILE 9981ae052ac043ba

The third-party file has ended. Everything between the 9981ae052ac043ba tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2303 of 13902 bytes. © datadrivenconstruction · MIT · https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/bim-visual-programming-automation/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
