Skip to content

Init documentation #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# revit-mcp-commandset
🔄 Revit-MCP Client | Core implementation of the Revit-MCP protocol that connects LLMs with Revit. Includes essential CRUD commands for Revit elements enabling AI-driven BIM automation.

# Custom Commands Setup

## Installation

1. Create folder: `RevitMCPCommandSet` at the end of the usual Revit addins directory like so `C:\Users\[USERNAME]\AppData\Roaming\Autodesk\Revit\Addins\20XX\RevitMCPCommandSet\`

2. Add files:
- Copy `command.json` from this repo to the `RevitMCPCommandSet` folder
- Create `20XX` subfolder
- Place compiled output from this repo in the `20XX` subfolder

3. In Revit: Go to **Add-ins** > **Settings** > **Refresh** > **Save**

## Important Note

- Command names must be identical between `revit-mcp` and `revit-mcp-commandset` repositories, otherwise Claude cannot find them.
- The `commandRegistry.json` is created automatically, do not import it from the installer.
52 changes: 52 additions & 0 deletions command.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "RevitMCPCommandSet",
"description": "Basic command collection for Revit AI assistance",
"developer": {
"name": "revit-mcp",
"email": "",
"website": "",
"organization": "revit-mcp"
},
"commands": [
{
"commandName": "say_hello",
"description": "Displays a greeting dialog",
"assemblyPath": "RevitMCPCommandSet.dll"
},
{
"commandName": "get_available_family_types",
"description": "get available family types",
"assemblyPath": "RevitMCPCommandSet.dll"
},
{
"commandName": "get_current_view_elements",
"description": "get current view elements",
"assemblyPath": "RevitMCPCommandSet.dll"
},
{
"commandName": "get_current_view_info",
"description": "get current view info",
"assemblyPath": "RevitMCPCommandSet.dll"
},
{
"commandName": "create_Wall",
"description": "create a wall",
"assemblyPath": "RevitMCPCommandSet.dll"
},
{
"commandName": "delete_element",
"description": "Deletes elements using ElementId",
"assemblyPath": "RevitMCPCommandSet.dll"
},
{
"commandName": "tag_all_walls",
"description": "Tag all the walls in the model",
"assemblyPath": "RevitMCPCommandSet.dll"
},
{
"commandName": "create_line_based_element",
"description": "Create line based element such as wall",
"assemblyPath": "RevitMCPCommandSet.dll"
}
]
}
2 changes: 1 addition & 1 deletion revit-mcp-commandset/Commands/TagWallsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TagWallsCommand : ExternalEventCommandBase
/// <summary>
/// 命令名称
/// </summary>
public override string CommandName => "tag_walls";
public override string CommandName => "tag_all_walls";

/// <summary>
/// 构造函数
Expand Down
4 changes: 4 additions & 0 deletions revit-mcp-commandset/RevitMCPCommandSet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@
<Reference Include="System.Net.Http" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy /y &quot;$(TargetDir)*.dll&quot; &quot;$(AppData)\Autodesk\Revit\Addins\2024\Commands\RevitMCPCommandSet\2024&quot;&#xD;&#xA;xcopy /y &quot;$(TargetDir)*.pdb&quot; &quot;$(AppData)\Autodesk\Revit\Addins\2024\Commands\RevitMCPCommandSet\2024&quot;" />
</Target>

</Project>