Insert command in Data Panel's context menu

Insert command in Data Panel's context menu

ltomuta
Advisor Advisor
424 Views
2 Replies
Message 1 of 3

Insert command in Data Panel's context menu

ltomuta
Advisor
Advisor

Hi there

 

Is there a way to insert a custom command in this menu?

ltomuta_0-1673851190642.png

 

0 Likes
425 Views
2 Replies
Replies (2)
Message 2 of 3

kandennti
Mentor
Mentor

Hi @ltomuta .

 

Perhaps the API does not provide the functionality.


I will describe what I know a little bit about it.
Run the following text command.

DevOptions.WebDeveloperExtras /on

 

Right click in the margin of the data panel to bring up the context menu.

1.png

 

"Show DevTools" would give you a lot of information, but I have no knowledge of it, so I don't know if it will help you with the goal you are hoping for.

 

If you want to go back to the original state, then run the following text command

DevOptions.WebDeveloperExtras /off
Message 3 of 3

BrianEkins
Mentor
Mentor

The API does not support modifying the Data Panel's context menu. I don't know if there's a way to hack it, as kandennti suggests, but I would suspect even if there is it will be difficult and possibly fragile.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com