/revit-bim:acc-coordinatefrom revit-bim
Automates Autodesk Construction Cloud (ACC) Coordinate workflows via the APS Model Coordination API: list model sets, retrieve clash results, create clash issues, manage model activation, and export coordination reports.
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.
Automate ACC Coordinate workflows for:
"$ARGUMENTS"
acc-api-setup skill)b. prefixpip install requestsBase: https://developer.api.autodesk.com/modelcoordination/modelset/v3
Auth: 2-legged token (data:read scope)
Key objects:
b.)import os, requests
CONTAINER_ID = os.environ.get("APS_CONTAINER_ID") # project ID without b.
BASE_MC = "https://developer.api.autodesk.com/modelcoordination/modelset/v3"
def list_model_sets(client, container_id):
"""List all model sets (coordination spaces) in an ACC project."""
url = f"{BASE_MC}/containers/{container_id}/modelsets"
data = client.get(url)
model_sets = []
for ms in data.get("results", []):
model_sets.append({
"Model Set Name": ms.get("name", ""),
"Model Set ID": ms.get("modelSetId", ""),
"Created": ms.get("createTime", ""),
"Status": ms.get("status", ""),
"Model Count": len(ms.get("modelSetVersions", [{}])[-1:][0].get("models", []))
if ms.get("modelSetVersions") else 0,
})
return model_sets
if __name__ == "__main__":
# client = APSClient(...)
model_sets = list_model_sets(client, CONTAINER_ID)
for ms in model_sets:
print(f" {ms['Model Set Name']:30} ID: {ms['Model Set ID']}")
BASE_MC = "https://developer.api.autodesk.com/modelcoordination/modelset/v3"
def get_model_set_versions(client, container_id, model_set_id):
"""Get all versions of a model set (each version = a clash test run)."""
url = f"{BASE_MC}/containers/{container_id}/modelsets/{model_set_id}/versions"
data = client.get(url)
versions = []
for v in data.get("results", []):
versions.append({
"version_id": v.get("modelSetVersionId", ""),
"version_num": v.get("versionNumber", 0),
"created": v.get("createTime", ""),
"clash_count": v.get("clashCount", 0),
"status": v.get("status", ""),
})
# Sort by version number descending (latest first)
return sorted(versions, key=lambda x: -x["version_num"])
def get_clash_groups(client, container_id, model_set_id, version_id):
"""Get grouped clashes for a model set version."""
url = f"{BASE_MC}/containers/{container_id}/modelsets/{model_set_id}/versions/{version_id}/clashes/grouped"
data = client.get(url)
groups = []
for group in data.get("groups", []):
groups.append({
"Clash Group": group.get("clashGroupId", ""),
"Discipline A": group.get("documentGroupA", {}).get("name", ""),
"Discipline B": group.get("documentGroupB", {}).get("name", ""),
"Count": group.get("clashCount", 0),
"Status": group.get("status", "open"),
})
return sorted(groups, key=lambda x: -x["Count"])
def get_clash_instances(client, container_id, model_set_id, version_id, group_id, limit=100):
"""Get individual clash instances in a clash group."""
url = (f"{BASE_MC}/containers/{container_id}/modelsets/{model_set_id}"
f"/versions/{version_id}/clashes")
params = {"groupId": group_id, "limit": limit}
data = client.get(url, params=params)
clashes = []
for clash in data.get("clashes", []):
clashes.append({
"Clash ID": clash.get("clashId", ""),
"Status": clash.get("status", ""),
"Element A ID": clash.get("ldId", ""),
"Element B ID": clash.get("rdId", ""),
"Position X": clash.get("clashPoint", {}).get("x", 0),
"Position Y": clash.get("clashPoint", {}).get("y", 0),
"Position Z": clash.get("clashPoint", {}).get("z", 0),
})
return clashes
if __name__ == "__main__":
# Get latest version
versions = get_model_set_versions(client, CONTAINER_ID, MODEL_SET_ID)
latest = versions[0]
print(f"Latest version: v{latest['version_num']} — {latest['clash_count']} clashes")
# Get clash groups (discipline pairs)
groups = get_clash_groups(client, CONTAINER_ID, MODEL_SET_ID, latest["version_id"])
for g in groups[:10]:
print(f" {g['Discipline A']:25} vs {g['Discipline B']:25} → {g['Count']} clashes")
import csv, os
from datetime import datetime
def export_clashes_to_csv(client, container_id, model_set_id, output_path=None):
"""Export all clash groups and totals to a CSV report."""
if not output_path:
ts = datetime.now().strftime("%Y%m%d_%H%M")
output_path = f"C:\\Reports\\acc_clashes_{ts}.csv"
# Get latest version
versions = get_model_set_versions(client, container_id, model_set_id)
if not versions:
print("No versions found.")
return
latest_version = versions[0]
groups = get_clash_groups(client, container_id, model_set_id, latest_version["version_id"])
os.makedirs(os.path.dirname(output_path), exist_ok=True)
with open(output_path, "w", newline="") as f:
writer = csv.writer(f)
writer.writerow([
"Report Date", datetime.now().strftime("%Y-%m-%d %H:%M"),
"Model Set ID", model_set_id,
"Version", latest_version["version_num"],
])
writer.writerow([])
writer.writerow(["Clash Group", "Discipline A", "Discipline B", "Count", "Status"])
total = 0
for g in groups:
writer.writerow([
g["Clash Group"],
g["Discipline A"],
g["Discipline B"],
g["Count"],
g["Status"],
])
total += g["Count"]
writer.writerow([])
writer.writerow(["TOTAL", "", "", total, ""])
print(f"Clash report saved to: {output_path} ({total} total clashes)")
return output_path
def get_activated_models(client, container_id, model_set_id):
"""List all Revit/IFC models activated in the latest model set version."""
versions = get_model_set_versions(client, container_id, model_set_id)
if not versions:
return []
latest_v_id = versions[0]["version_id"]
url = f"{BASE_MC}/containers/{container_id}/modelsets/{model_set_id}/versions/{latest_v_id}"
data = client.get(url)
models = []
for model in data.get("models", []):
models.append({
"Model Name": model.get("name", ""),
"Document ID": model.get("documentId", ""),
"Version URN": model.get("versionUrn", ""),
"Discipline": model.get("documentGroup", {}).get("name", ""),
"Status": model.get("status", ""),
})
return models
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-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.
npx claudepluginhub utopia5327/claude-plugin-for-revit-bim --plugin revit-bimOther plugins' skills for the same job