Revit MCP

by revit-mcp
MIT License
60

send_code_to_revit

Execute custom C# code directly in Autodesk Revit to automate tasks, manipulate project data, and integrate workflows using a pre-configured template with document and parameter access.

Instructions

Send C# code to Revit for execution. The code will be inserted into a template with access to the Revit Document and parameters. Your code should be written to work within the Execute method of the template.

Input Schema

NameRequiredDescriptionDefault
codeYesThe C# code to execute in Revit. This code will be inserted into the Execute method of a template with access to Document and parameters.
parametersNoOptional execution parameters that will be passed to your code

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "code": { "description": "The C# code to execute in Revit. This code will be inserted into the Execute method of a template with access to Document and parameters.", "type": "string" }, "parameters": { "description": "Optional execution parameters that will be passed to your code", "type": "array" } }, "required": [ "code" ], "type": "object" }

You must be authenticated.

Other Tools from Revit MCP

Related Tools

ID: npu475c7cd