管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-14 fae199eb7f712f5dd2426c5e25561663129e753d
1
已修改1个文件
18 ■■■■ 文件已修改
ExportMap/cs/ConvertUtils.cs 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/ConvertUtils.cs
@@ -47,7 +47,7 @@
                string outPath = Path.Combine(tilesFolder, meta.type, meta.id.ToString());
                if (!Directory.Exists(outPath)) Directory.CreateDirectory(outPath);
                WriteText(configFile, string.Format(JobConfig, outPath));
                WriteText(configFile, string.Format(JobConfig, outPath.Replace("\\", "\\\\")));
                count += ExecNavisworks(modelFile, configFile);
                File.Delete(configFile);
@@ -61,24 +61,10 @@
        /// </summary>
        public static int ExecNavisworks(string modelFile, string configFile)
        {
            //string args = string.Format("-licensing AdLM -OpenFile \"{0}\" -ExecuteAddInPlugin \"EngineBatch_Sample.SmartEarth\" \"{1}\" -NoGui -Exit", modelFile, configFile);
            //Process p = new Process();
            //p.StartInfo.UseShellExecute = false;
            //p.StartInfo.ErrorDialog = true;
            //p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
            //p.StartInfo.RedirectStandardError = false;
            //p.StartInfo.FileName = RoamerExe;
            //p.StartInfo.Arguments = args;
            //p.StartInfo.CreateNoWindow = true;
            //p.Start();
            //return string.Empty;
            Process p = null;
            try
            {
                string args = string.Format("-licensing AdLM -OpenFile \"{1}\" -ExecuteAddInPlugin \"EngineBatch_Sample.SmartEarth\" \"{2}\" -NoGui -Exit", RoamerExe, modelFile, configFile);
                string args = string.Format("-licensing AdLM -OpenFile \"{0}\" -ExecuteAddInPlugin \"EngineBatch_Sample.SmartEarth\" \"{1}\" -log D:\\xyz\\auto\\log.txt -NoGui -Exit", modelFile, configFile);
                // 启动进程
                p = Process.Start(RoamerExe, args);