/revit-bim:analyze-roomsfrom revit-bim
Analyzes Revit model rooms and spaces: calculates GIA, compares space program against brief, audits unbounded/unplaced rooms, and exports room data tables to CSV.
Ships in revit-bim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Perform room/space analysis for:
"$ARGUMENTS"
Read-only — no model modifications.
import clr
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
# Unit conversion constants
SQ_FT_TO_SQ_M = 0.092903 # Revit stores area in square feet internally
CUBIC_FT_TO_M3 = 0.0283168
FT_TO_M = 0.3048
try:
# Collect all placed rooms
rooms = (FilteredElementCollector(doc)
.OfCategory(BuiltInCategory.OST_Rooms)
.WhereElementIsNotElementType()
.ToElements())
room_data = []
unplaced = []
for room in rooms:
area_sqft = room.Area
if area_sqft <= 0:
# Unplaced or unbounded room — flag it
unplaced.append({
'Id': room.Id.IntegerValue,
'Number': room.Number,
'Name': room.get_Parameter(BuiltInParameter.ROOM_NAME).AsString() or '',
'Issue': 'Unplaced or Unbounded'
})
continue
# Pull all useful fields
dept_param = room.get_Parameter(BuiltInParameter.ROOM_DEPARTMENT)
phase_param = room.get_Parameter(BuiltInParameter.ROOM_PHASE)
data = {
'Room Number': room.Number,
'Room Name': room.get_Parameter(BuiltInParameter.ROOM_NAME).AsString() or '',
'Department': dept_param.AsString() if dept_param else '',
'Level': room.Level.Name if room.Level else 'N/A',
'Area (m2)': round(area_sqft * SQ_FT_TO_SQ_M, 2),
'Area (ft2)': round(area_sqft, 2),
'Volume (m3)': round(room.Volume * CUBIC_FT_TO_M3, 2),
'Perimeter (m)': round(room.Perimeter * FT_TO_M, 2),
'Phase': phase_param.AsValueString() if phase_param else '',
'Element Id': room.Id.IntegerValue,
}
room_data.append(data)
# Sort by level, then room number
room_data.sort(key=lambda x: (x['Level'], x['Room Number']))
# Calculate totals
gia_m2 = sum(r['Area (m2)'] for r in room_data)
OUT = [
room_data, # full data table
unplaced, # rooms to fix
round(gia_m2, 2), # total GIA in m²
len(room_data), # placed room count
len(unplaced), # unplaced count
]
except Exception as e:
import traceback
OUT = 'ERROR: ' + str(e) + '\n' + traceback.format_exc()
import csv
output_path = r'C:\Reports\room_analysis.csv'
if room_data:
with open(output_path, 'w') as f:
writer = csv.DictWriter(f, fieldnames=room_data[0].keys())
writer.writeheader()
writer.writerows(room_data)
print('Saved to: ' + output_path)
Guide the user:
If the user wants breakdown by department or level:
from collections import defaultdict
by_dept = defaultdict(float)
by_level = defaultdict(float)
for r in room_data:
by_dept[r['Department'] or 'Unassigned'] += r['Area (m2)']
by_level[r['Level']] += r['Area (m2)']
OUT = [dict(by_dept), dict(by_level), round(gia_m2, 2)]
If the user has a brief (target areas), accept it as a Dynamo input:
# IN[0] = list of [room_name, target_area_m2] pairs from an Excel node
brief = {row[0]: row[1] for row in IN[0]}
comparison = []
for r in room_data:
target = brief.get(r['Room Name'])
if target:
delta = round(r['Area (m2)'] - float(target), 2)
comparison.append({
'Room': r['Room Name'],
'Actual (m2)': r['Area (m2)'],
'Target (m2)': float(target),
'Delta (m2)': delta,
'Status': 'Over' if delta > 0 else 'Under' if delta < 0 else 'OK'
})
OUT = comparison
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
25 skills in this plugin
/acc-api-setupSet up Python authentication and a reusable client for the Autodesk Platform Services (APS) API to access Autodesk Construction Cloud (ACC). Use this skill first before any other ACC API script — it handles OAuth2 token acquisition (2-legged and 3-legged), environment configuration, hub/project discovery, and the Python boilerplate that all ACC API scripts depend on. Trigger on phrases like "ACC API setup", "authenticate with APS", "get an APS token", "connect to ACC", "Autodesk API token", "APS credentials", "set up Forge API", "configure ACC API", "get access token Autodesk", or whenever a user is starting to write ACC/APS API scripts and needs the authentication foundation. Always offer this skill before any other ACC API skill if the user hasn't authenticated yet.
/acc-coordinateWork with Autodesk Construction Cloud (ACC) Coordinate — list and inspect model sets, retrieve clash results, create clash issues, manage model activation for coordination, and export coordination reports via the APS Model Coordination API. Use this skill when a user needs to automate clash detection workflows, pull clash data from ACC for reporting, create ACC issues from clashes, check which models are active in a model set, or integrate ACC coordination data with other tools. Trigger on phrases like "ACC Coordinate", "model coordination", "model set", "clash results", "clash data", "ACC clashes", "coordination space", "activated models", "clash issues", "federated model", "coordination report", "BIM coordination", or any request to work with ACC's model coordination module via API. Also offer this when users want to export or report on clash data from ACC.
/acc-design-collaborationGuide Revit ↔ ACC Design Collaboration workflows — setting up cloud worksharing, creating and consuming design packages, shared views, Design Collaboration setup, model publishing, and Revit cloud model best practices. Also covers the API for querying shared views and design package status. Use this skill when a user needs help with Revit cloud models, BIM 360 Design / ACC Design Collaboration, creating or receiving design packages, activating models for coordination, or troubleshooting cloud worksharing issues. Trigger on phrases like "Design Collaboration", "cloud worksharing", "Revit cloud model", "design package", "shared views", "consume package", "publish model to ACC", "BIM 360 Design", "Revit cloud", "cloud model", "collaboration workflow", "ACC Revit workflow", or any request involving the Revit-to-ACC publishing and collaboration pipeline.
/acc-docsManage Autodesk Construction Cloud (ACC) Docs — list folders and files, upload documents, download files, create folder structures, manage transmittals, reviews, and packages via the APS Data Management API and ACC Docs REST API. Use this skill when a user needs to automate document control workflows in ACC: bulk uploading drawing sets, creating folder structures, listing published files, downloading specific versions, setting up transmittals, creating document packages, or writing reports of what's in their ACC Docs library. Trigger on phrases like "ACC Docs", "upload to ACC", "download from ACC", "list files in ACC", "document control", "ACC folder", "transmittal", "document package", "file versions", "publish drawings", "drawing register", "ACC file management", or any request to read, write, or organise files in Autodesk Construction Cloud Docs.
/acc-reportsExport ACC project data to CSV or Excel — issues, RFIs, document logs, clash summaries, transmittals, and project activity reports — using the APS REST API with Python. Use this skill when a user needs to report on ACC project health, export an issues register, pull RFI status into a spreadsheet, generate a document transmittal log, create a clash trend report, or produce any data export from Autodesk Construction Cloud. Trigger on phrases like "export issues", "issues report", "RFI report", "ACC report", "export from ACC", "document log", "clash report", "ACC data export", "project status report", "pull data from ACC", "ACC Excel export", "transmittal log", or any request to extract or report on data stored in Autodesk Construction Cloud.
/audit-modelAudit and analyze Revit model health, quality, and BIM standards compliance. Use this skill when checking model file size, warning counts, element counts by category, redundant or in-place families, unused views, workset structure, model warnings, or any model performance or quality-control question. Trigger on phrases like "audit my model", "check model health", "how many warnings", "is my model clean", "model performance", "BIM QC", "quality check", or whenever someone wants a summary of what's in their Revit model. Proactively offer an audit when users mention slow model performance or submission deadlines.
npx claudepluginhub utopia5327/claude-plugin-for-revit-bim --plugin revit-bimOther plugins' skills for the same job