锁定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;

原文地址:https://www.cnblogs.com/whiteIcrow/p/10313502.html