MenuBar问题
我增加了一个菜单接钮:theUI.MenuBarManager.AddMenuAction("ADD_DRAWING_TITLE", AddressOf ADD_DRAWING_TITLE)
下面是打开对话框:
Dim response As NXOpen.UIStyler.DialogResponse
Dim status As NXOpen.MenuBar.MenuBarManager.CallbackStatus
status = NXOpen.MenuBar.MenuBarManager.CallbackStatus.Continue
ufs.Ui.LockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)
OpenSetTitleDialog1(response) '打开对话框
ufs.Ui.UnlockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)
问题是:打开对话框后,UG的菜单锁定的,我想要是不锁定的状态,如果我在对话框时加" ufs.Ui.UnlockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)",达到我要的效果,但是退出时显示内部错误.有没有办法解决这个问题?
页:
[1]