send_code_to_revit
Execute C# code directly in Autodesk Revit by sending it through the MCP protocol. Insert custom logic into the Execute method to interact with the Revit Document and parameters.
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
Name | Required | Description | Default |
---|---|---|---|
code | Yes | 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. | |
parameters | No | Optional execution parameters that will be passed to your code |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Revit MCP Server
- ai_element_filter
- color_elements
- create_line_based_element
- create_point_based_element
- create_surface_based_element
- delete_element
- get_available_family_types
- get_current_document_info
- get_current_view_elements
- get_current_view_info
- get_selected_elements
- open_document
- operate_element
- send_code_to_revit
- tag_all_walls