Hi Strube, it's possible to do that, the script has to dig into the UI to retrieve a reference to the grid snap button and pass that to showMenu() - the structure of the UI changed from v2 to v3 and so that old script only worked to find the button for v2.
Try this instead for v3:
script: /* Show snap menu */ moi.ui.showMenu( 'ObjectSnapMenu.htm', moi.ui.commandBar.document.getElementsByTagName( 'moi:StateButton' )[2], 2, 0 );
- Michael
|