Install
$ agentstack add skill-nice3point-revit-skills-revit-context-menu ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
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.
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
ContextMenuand added withAddSubMenu.
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
- Source: Nice3point/revit-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.