初学UG二次开发,用C#做UG菜单,用UG自带菜单实例(D:\Program Files\Simens\NX7.5\UGOPEN\SampleNXOpenApplication\.NET\MenuBarDotNetApp)
在.men文件中定义某个菜单按钮的action SAMPLE_CSHARY_APP__action1,并在后台.cs文件中,为该菜单按钮添加事件theUI.MenuBarManager.AddMenuAction("SAMPLE_CSHARY_APP__action1",new NXOpen.MenuBar.MenuBarManager.ActionCallbace(按钮触发事件));
环境变量等都按照要求设置,.DLL文件也按要求放在application文件夹中,但是每次运行都会提示none of the actions specified for this button were registered.查看custom menubar报告,发现该button的actions not registered,请教各位达人如何解决菜单响应问题!谢谢啦!