/revit-bim:export-dynamo-filefrom revit-bim
Generates a ready-to-open .dyn file for Revit Dynamo with embedded IronPython 2.7 script, saving directly to disk or providing JSON for manual save.
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.
Generate a complete, openable Dynamo .dyn file for:
"$ARGUMENTS"
A .dyn file is a Dynamo graph saved as JSON. When the user opens it in Dynamo
(File → Open or double-click), they get a ready-to-run graph with a Python Script node
pre-filled with the generated code — no manual node creation or copy-pasting required.
First, generate the Python script for the task (follow all guidelines from
generate-dynamo skill — boilerplate imports, transactions, error handling, OUT=result).
Then wrap it in a valid .dyn file using the template below.
If you have file system access (Cowork / Claude Code), save the .dyn file
directly to the user's desktop or a path they specify. Otherwise, output the
complete JSON so they can save it manually as scriptname.dyn.
Build the JSON programmatically — never try to manually JSON-escape multi-line Python
code by hand. Instead, use Python's json.dumps() to produce the correct JSON string,
or build the structure as a dict and serialize it. Here is the canonical template:
import json, uuid
# The Python script to embed (write the full script as a normal Python string here)
python_code = """
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
try:
# --- generated logic here ---
result = []
OUT = result
except Exception as e:
import traceback
OUT = 'ERROR: ' + str(e) + '\\n' + traceback.format_exc()
""".strip()
# Unique IDs for the graph and nodes
graph_id = str(uuid.uuid4())
node_id = str(uuid.uuid4())
graph = {
"Uuid": graph_id,
"IsCustomNode": False,
"Description": "Generated by revit-bim Claude plugin",
"Name": "BIM Script", # ← set to a meaningful name based on the task
"ElementResolver": {"ResolutionMap": {}},
"Inputs": [],
"Outputs": [],
"Nodes": [
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": python_code, # json.dumps handles escaping automatically
"Engine": "IronPython2",
"EngineName": "IronPython2",
"VariableInputPorts": True,
"Id": node_id,
"Inputs": [
{
"Id": "in0",
"Name": "IN[0]",
"Description": "Input #0",
"UsingDefaultValue": False,
"Level": 2,
"UseLevels": False,
"KeepListStructure": False
}
],
"Outputs": [
{
"Id": "out0",
"Name": "OUT",
"Description": "Result of the python script",
"UsingDefaultValue": False,
"Level": 2,
"UseLevels": False,
"KeepListStructure": False
}
],
"Replication": "Disabled",
"Description": "Runs an embedded Python script."
}
],
"Connectors": [],
"Dependencies": [],
"NodeLibraryDependencies": [],
"EnableLaceByDefault": True,
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": False,
"IsVisibleInDynamoLibrary": True,
"Version": "2.13.1.3887",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"EyeX": -17.0, "EyeY": 24.0, "EyeZ": 50.0,
"LookX": 12.0, "LookY": -13.0, "LookZ": -58.0,
"UpX": 0.0, "UpY": 1.0, "UpZ": 0.0
},
"NodeViews": [
{
"Name": "Python Script",
"ShowGeometry": True,
"Id": node_id,
"IsSetAsInput": False,
"IsSetAsOutput": False,
"Excluded": False,
"X": 250.0,
"Y": 100.0
}
],
"Annotations": [],
"X": -100.0,
"Y": -50.0,
"Zoom": 1.0
}
}
# Serialize to JSON with proper indentation and escaping
dyn_json = json.dumps(graph, indent=2, ensure_ascii=False)
# Save to file
output_path = r"C:\Users\YourName\Desktop\script_name.dyn" # ← ask user or use a sensible default
with open(output_path, 'w', encoding='utf-8') as f:
f.write(dyn_json)
print("Saved: " + output_path)
When the user asks for a .dyn file:
generate-dynamo guidelines).python_code in the template above."Name" in the graph dict to something descriptive (e.g. "Rename Rooms by Level")..dyn file directly to a path the user specifies, or default to their Desktop.filename.dyn.File → Open in Dynamo, or double-click if Dynamo is associated with .dyn files.If the script uses IN[0], IN[1], etc., add corresponding input entries to the "Inputs"
list and "NodeViews" section, and mention in the response that the user needs to wire up
those input nodes (e.g. a String node for a parameter name, a Number node for a value).
For most scripts that collect directly from the document, no inputs are needed and IN[0]
can be left disconnected — the script won't use it.
If the user specifies Dynamo 3 or CPython, change:
"Engine": "CPython3",
"EngineName": "CPython3"
And update the script to use CPython syntax (f-strings OK, UnitTypeId for units).
What SKILL.md sets; muted values are Claude Code's defaults
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