/revit-bim:batch-rename-elementsfrom revit-bim
Batch rename Revit elements across any category using prefixes, suffixes, numbering sequences, or parameter-driven naming rules. Useful for enforcing naming conventions, BEP standards, or project numbering schemes.
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.
Rename Revit elements in bulk for:
"$ARGUMENTS"
Ask (one question only if ambiguous):
Name for rooms/views, Sheet Number+Sheet Name for sheets.Default: produce a complete, ready-to-run Dynamo script.
import clr
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
# ── Configuration ────────────────────────────────────────────────────────────
CATEGORY = BuiltInCategory.OST_Rooms # change to target category
PARAM_NAME = "Name" # parameter that holds the name
PREFIX = "A-" # set "" to skip
SUFFIX = "" # set "" to skip
# ─────────────────────────────────────────────────────────────────────────────
try:
elements = (FilteredElementCollector(doc)
.OfCategory(CATEGORY)
.WhereElementIsNotElementType()
.ToElements())
renamed = []
skipped = []
TransactionManager.Instance.EnsureInTransaction(doc)
for el in elements:
param = el.LookupParameter(PARAM_NAME)
if param and not param.IsReadOnly:
old_name = param.AsString() or ""
# Avoid double-prefixing on re-runs
if not old_name.startswith(PREFIX):
new_name = PREFIX + old_name + SUFFIX
param.Set(new_name)
renamed.append(old_name + " → " + new_name)
else:
skipped.append(old_name + " (already prefixed)")
TransactionManager.Instance.TransactionTaskDone()
OUT = {
"Renamed": renamed,
"Skipped (already prefixed)": skipped,
"Total renamed": len(renamed)
}
except Exception as e:
TransactionManager.Instance.ForceCloseTransaction()
import traceback
OUT = "ERROR: " + str(e) + "\n" + traceback.format_exc()
import clr
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
# ── Configuration ────────────────────────────────────────────────────────────
CATEGORY = BuiltInCategory.OST_Rooms
PARAM_NAME = "Number" # parameter to write to
BASE_PREFIX = "R" # e.g. "R" → R001, R002 …
START_NUMBER = 1
ZERO_PAD = 3 # digits to pad: 3 → 001
SORT_PARAM = "Name" # sort elements by this before numbering
# ─────────────────────────────────────────────────────────────────────────────
try:
elements = list(FilteredElementCollector(doc)
.OfCategory(CATEGORY)
.WhereElementIsNotElementType()
.ToElements())
# Sort alphabetically by name for consistent numbering
def get_sort_key(el):
p = el.LookupParameter(SORT_PARAM)
return p.AsString() if p else ""
elements.sort(key=get_sort_key)
results = []
TransactionManager.Instance.EnsureInTransaction(doc)
for i, el in enumerate(elements):
param = el.LookupParameter(PARAM_NAME)
if param and not param.IsReadOnly:
number = BASE_PREFIX + str(START_NUMBER + i).zfill(ZERO_PAD)
old_val = param.AsString() or ""
param.Set(number)
results.append(old_val + " → " + number)
TransactionManager.Instance.TransactionTaskDone()
OUT = {"Renumbered": results, "Total": len(results)}
except Exception as e:
TransactionManager.Instance.ForceCloseTransaction()
import traceback
OUT = "ERROR: " + str(e) + "\n" + traceback.format_exc()
import clr
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
# ── Configuration ────────────────────────────────────────────────────────────
CATEGORY = BuiltInCategory.OST_Views
PARAM_NAME = "Name"
FIND = "Copy of " # text to find
REPLACE_WITH = "" # replace with (empty = remove it)
CASE_SENS = False # True = case-sensitive match
# ─────────────────────────────────────────────────────────────────────────────
try:
elements = (FilteredElementCollector(doc)
.OfCategory(CATEGORY)
.WhereElementIsNotElementType()
.ToElements())
results = []
TransactionManager.Instance.EnsureInTransaction(doc)
for el in elements:
param = el.LookupParameter(PARAM_NAME)
if param and not param.IsReadOnly:
old_name = param.AsString() or ""
check_name = old_name if CASE_SENS else old_name.lower()
check_find = FIND if CASE_SENS else FIND.lower()
if check_find in check_name:
if CASE_SENS:
new_name = old_name.replace(FIND, REPLACE_WITH)
else:
import re
new_name = re.sub(re.escape(FIND), REPLACE_WITH, old_name, flags=re.IGNORECASE)
param.Set(new_name)
results.append('"' + old_name + '" → "' + new_name + '"')
TransactionManager.Instance.TransactionTaskDone()
OUT = {"Renamed": results, "Count": len(results)}
except Exception as e:
TransactionManager.Instance.ForceCloseTransaction()
import traceback
OUT = "ERROR: " + str(e) + "\n" + traceback.format_exc()
| Target | BuiltInCategory | Name param |
|---|---|---|
| Rooms | OST_Rooms | Name, Number |
| Views | OST_Views | Name |
| Sheets | OST_Sheets | Name, Sheet Number |
| Doors | OST_Doors | Mark |
| Windows | OST_Windows | Mark |
| Levels | OST_Levels | Name |
| Grids | OST_Grids | Name |
| Areas | OST_Areas | Name, Number |
startswith) prevents double-prefixing on re-runs.Sheet Number and Name are separate parameters — handle both if needed.Tell the user:
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.
/analyze-roomsAnalyze rooms, spaces, and areas in a Revit model — GIA calculations, space program comparison, department breakdowns, unbounded/unplaced room audits, and CSV export. Use this skill when a user wants to calculate total floor area, check room areas against a brief, export a room data table, find unplaced or unbounded rooms, or produce a GIA (Gross Internal Area) report. Trigger on phrases like "room areas", "GIA", "space program", "analyze rooms", "unbounded rooms", "area schedule", "room data", "floor area summary", "net internal area", or any request involving Revit room/space quantities. Also use when someone mentions area validation before planning submission.
npx claudepluginhub utopia5327/claude-plugin-for-revit-bim --plugin revit-bimOther plugins' skills for the same job