| | |
| | | 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); |
| | |
| | | /// </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); |