锁定NX原生界面 & 锁定界面更新

            //锁定UI
            int uiLockStatus = theUFSession.Ui.AskLockStatus();
            if (uiLockStatus != UFConstants.UF_UI_LOCK)
            {
                int result = theUFSession.Ui.LockUgAccess(NXOpen.UF.UFConstants.UF_UI_FROM_CUSTOM);
            }

 

        theUFSession.Ui.UnlockUgAccess(NXOpen.UF.UFConstants.UF_UI_FROM_CUSTOM);

 

 

       theSession.Preferences.Modeling.UpdateDelayed = true;

posted on 2019-01-24 11:33  程序员乌鸦  阅读(332)  评论(0编辑  收藏  举报

导航