Adding custom items to right-click context menu

I have created a Tool that detects when the object I am right-clicking has some specifications. I would like to add some custom items to the right-click context menu of these objects but I don’t know how.

I’ve seen that some extensions, like Dynamic Components, accomplish the results I want to get, but I can’t find related info. Could you help me please?

UI#add_context_menu_handler is used to add something to the context menu of the select tool. Tool#getMenu is ued in custom Ruby tools.

1 Like

There is an example posted in this thread:

1 Like

This topic was automatically closed after 91 days. New replies are no longer allowed.