Trans2Json程序配置与调用手册.pdfVIP

  • 0
  • 0
  • 约2.31千字
  • 约 2页
  • 2026-11-09 发布于北京
  • 举报

Trans2Json.exe和TransSetup.txt放置在同一目录下。调用程序前需确认

TransSetup.txt中的各项配置与本机是否匹配。调用过程中若出现错误,将在调用程

序的目录下生成error.txt文件以供查阅。

附录一:C#调用示例代码

string[]paraArr

=new

string[]{

节点,泵,管道,阀门,储罐,项目1模型1

};

for

(int

i

=0;

i

paraArr.Length;

i++)

{

Process

myProcess

=new

Process();

string

fileName

=@F:\Trans2

Json\Trans2Json\bin\Debug\Trans2Json.exe;//.exe文件路径

ProcessStartInfo

myProcessStartInfo

=new

ProcessStartInfo(fileName,

paraArr[i]);

myProcess.StartInfo

=

myProcessStartInfo;

myProcess.StartInfo.UseShellExecute

=false;

myProcess.StartInfo.CreateNoWindow

=true;

myProcess.Start();

while

(!

m

文档评论(0)

1亿VIP精品文档

相关文档