Use Jason's spy to monitor events. Then run the command manually and hopefully you will see the "BeforeCommandRun event and the spy (I hope) will report the ID out.
You can also add command IDs to tooltips by creating/changing a registry entry.
HKEY_CURRENT_USER\Software\Unigraphics Solutions\Solid Edge\Version 1023\ToolbarSettings - Add DWORD entry named TooltipCmdId and set it to 1. Then start edge and most command tooltips will have the ID added to them. For example, the view tab has an "Arrange" popup button and the tooltip shows me the ID for "Arrange" is 40004.
Unfortunately, that command ID simply kicks off the command that brings up the dialog that allows you to choose the tile option. So you have to do something hoakey like using SendInput Windows API to send the "enter" key (tiled is the default) to the app object.
Seems like the guys at SolidEdge would add this to the Windows API object!
Posted by: R.D. Holland Post date: 1/26/2010 4:39:25 AM