mengxiangge пре 6 година
родитељ
комит
e7120e6466

+ 2 - 0
Client/Start/RevitCmdExecutor.cs

@@ -34,6 +34,8 @@ namespace Client.Start
             if (addMessage?.Result == false) return addMessage.ResultMsg;
             string msg = "";
             msg=command.Execute(combineParam);
+            MessageBox.Show("命令执行完成 ");
+
             return msg;
         }
         /// <summary>

+ 2 - 2
SAGA.RevitMenu/MenuApp.cs

@@ -9,6 +9,7 @@ using System;
 using Autodesk.Revit.Attributes;
 using Autodesk.Revit.DB;
 using Autodesk.Revit.UI;
+using SAGA.RevitUtils;
 using SAGA.RevitUtils.ErrorSupports;
 using SAGA.RevitUtils.Extends;
 
@@ -41,12 +42,11 @@ namespace SAGA.RevitMenu
             base.OnStartup(application);
             //删除Addin文件
             //MenuConfig.ClearAddInFile(application);
-
+            MessageShow.Infomation("菜单加载了");
             #region 启动ServiceMBI服务
 
             try
             {
-
              Client.Start.ServiceMBIClientHandler.Start();
             }
             catch (Exception e)

+ 2 - 1
SAGA.RevitMenu/SAGA.RevitMenu.csproj

@@ -169,7 +169,8 @@
     <Reference Include="RevitAPIUI">
       <HintPath>..\Dlls\RevitRefDll\RevitAPIUI.dll</HintPath>
     </Reference>
-    <Reference Include="SAGA.DotNetUtils">
+    <Reference Include="SAGA.DotNetUtils, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
       <HintPath>..\Dlls\SAGA.DotNetUtils.dll</HintPath>
     </Reference>
     <Reference Include="SAGA.RevitUtils">

+ 2 - 0
ServiceMBI/Commands/BaseServiceCommand.cs

@@ -48,6 +48,7 @@ namespace ServiceMBI.Commands
                     }
                     finally
                     {
+                        //改变阻塞条件
                         lock (_locker)
                         {
                             Monitor.Pulse(_locker);
@@ -55,6 +56,7 @@ namespace ServiceMBI.Commands
                     }
                     return Result.Succeeded;
                 });
+                //开始阻塞
                 Monitor.Wait(_locker);
             }
 

+ 0 - 1
ServiceMBI/Commands/ModeCheckCommand.cs

@@ -32,7 +32,6 @@ namespace ServiceMBI.Commands
                 var context = CheckOperation.GetCheckContext(CommandArgs as CheckCommandArgs, CheckType.ModeCheck);
                 if (context == null) return msg;
                 msg = CheckOperation.Execute(context);
-                MessageShowBase.Infomation("ModeCheckCommand执行完了");
             }
             catch (Exception e)
             {