Cancel
Showing results for 
Search instead for 
Did you mean: 

How to add menu to Operation tree viewer and execute it

Pioneer
Pioneer

hi Experts,

 

I am looking for adding menu on right click mouse buttion and execute the code ? How I can do that

 

Regards,

Sandeep

5 REPLIES 5

Re: How to add menu to Operation tree viewer and execute it

Siemens Legend Siemens Legend
Siemens Legend

hi

You can add command to the existing menu in the operation tree, via the the UI. (Customize the ribbon..., and next to the menu section there is the "customize...:" button.

Re: How to add menu to Operation tree viewer and execute it

Legend
Legend

@OferOhayon 

Is there any way to customize the context menu? I have seen XML for context menu in NewAssembler.xml, but it so confusing. It would be nice to have a possibility to customize context menu.

 

Best Regards

Witalij.

Highlighted

Re: How to add menu to Operation tree viewer and execute it

Siemens Legend Siemens Legend
Siemens Legend

Hi,

yes, of course there is.

 

aa.png

 

 

 

 

 

 

 

 

 

then select:

 

bb.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

click on Customize...

 

 

 

 

cc.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note that 2 dialogs are opened. One with the customize title, allowing you to choose the viewer, and the menu to modify,

and the second is the selected sub menu.

next, click on the command tab, find the command that you wish to add, and drag it to the sub menu dialog.

Re: How to add menu to Operation tree viewer and execute it

Pioneer
Pioneer

Thanks it Works !!!

Re: How to add menu to Operation tree viewer and execute it

Legend
Legend

Thank you!