# Revit Context Menu

> >

- **Type:** Skill
- **Install:** `agentstack add skill-nice3point-revit-skills-revit-context-menu`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Nice3point](https://agentstack.voostack.com/s/nice3point)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Nice3point](https://github.com/Nice3point)
- **Source:** https://github.com/Nice3point/revit-skills/tree/main/plugins/revit-ui/skills/revit-context-menu

## Install

```sh
agentstack add skill-nice3point-revit-skills-revit-context-menu
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Revit Context Menu

`ConfigureContextMenu` (from `Nice3point.Revit.Extensions`) wraps the raw context-menu registration into a fluent call.
Register the menu once during application startup.

## When to use

- Adding entries to Revit's right-click context menu, bound to command classes.

## When not to use

- Building ribbon panels and buttons — use `revit-ribbon`.

## Workflow

### Step 1: Configure the menu

`AddMenuItem` binds a menu item to a command type; `AddSeparator` inserts a divider; `AddSubMenu` nests a `ContextMenu`.

```csharp
application.ConfigureContextMenu(menu =>
{
    menu.AddMenuItem("Analyze selection");
    menu.AddSeparator();

    var exportMenu = new ContextMenu();
    exportMenu.AddMenuItem("Export selection");
    menu.AddSubMenu("Export", exportMenu);
});
```

Use the `ConfigureContextMenu(title, configuration)` overload to title the menu group.

### Step 2: Verify

Right-click in Revit and confirm the items and submenu appear and each invokes its command.

## Validation

- [ ] The menu is configured once during application startup.
- [ ] Items bind to command types via `AddMenuItem`.
- [ ] Submenus are built as a `ContextMenu` and added with `AddSubMenu`.

## Common Pitfalls

| Pitfall                                            | Correct approach                                                  |
|----------------------------------------------------|-------------------------------------------------------------------|
| Registering context menu items through the raw API | Use `ConfigureContextMenu` with `AddMenuItem`.          |
| Expecting `AddSubMenu` to take a lambda            | Build a `ContextMenu` and pass it to `AddSubMenu(name, subMenu)`. |
| `ConfigureContextMenu` not found                   | The `Nice3point.Revit.Extensions` package is not referenced.      |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Nice3point](https://github.com/Nice3point)
- **Source:** [Nice3point/revit-skills](https://github.com/Nice3point/revit-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nice3point-revit-skills-revit-context-menu
- Seller: https://agentstack.voostack.com/s/nice3point
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
