From 0a7a732a71aed91eadae992ec26d3f4726d04df2 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 03 八月 2023 14:40:58 +0800 Subject: [PATCH] 1 --- ExportMap/cs/ConvertUtils.cs | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ExportMap/cs/ConvertUtils.cs b/ExportMap/cs/ConvertUtils.cs index 53c5c0f..5192923 100644 --- a/ExportMap/cs/ConvertUtils.cs +++ b/ExportMap/cs/ConvertUtils.cs @@ -84,8 +84,7 @@ Process p = null; try { - //string log = Path.Combine(ExportUtil.SourcesPath, "ns_log.txt"); - //string args = string.Format("-licensing AdLM -OpenFile \"{0}\" -ExecuteAddInPlugin \"EngineBatch_Sample.SmartEarth\" \"{1}\" -log \"{2}\" -NoGui -Exit", modelFile, configFile, log); + //string args = string.Format("-licensing AdLM -OpenFile \"{0}\" -ExecuteAddInPlugin \"EngineBatch_Sample.SmartEarth\" \"{1}\" -log \"{2}\" -NoGui -Exit", modelFile, configFile, Path.Combine(ExportUtil.SourcesPath, "ns_log.txt")); string args = string.Format("-licensing AdLM -OpenFile \"{0}\" -ExecuteAddInPlugin \"EngineBatch_Sample.SmartEarth\" \"{1}\" -NoGui -Exit", modelFile, configFile); LogOut.Info("Args:" + args); @@ -94,11 +93,8 @@ task.pid = p.Id; task.id = TaskDBHelper.Insert(task); - // 璁╃粍浠剁瓑鍊欑浉鍏崇殑杩涚▼杩涘叆闂茬疆鐘舵�� - p.WaitForInputIdle(); - - // 璁╃粍浠舵棤闄愭湡鍦扮瓑寰呭叧鑱旇繘绋嬮��鍑� - p.WaitForExit(); + p.WaitForInputIdle(); // 璁╃粍浠剁瓑鍊欑浉鍏崇殑杩涚▼杩涘叆闂茬疆鐘舵�� + p.WaitForExit(); // 璁╃粍浠舵棤闄愭湡鍦扮瓑寰呭叧鑱旇繘绋嬮��鍑� task = TaskDBHelper.SelectById(task.id); if (null != task && task.status < 2) -- Gitblit v1.9.3