directory = "C:\TEST\";
fileNames = Files In Directory( directory );
For( iFile = 1, iFile <= N Items( fileNames ), iFile++,
filename = fileNames[iFile];
If( Ends With( filename, ".csv" ),
dt = Open( directory || filename );
max = Col Max(Column( dt,4));
min = Col Min(Column( dt,4));
dt:DC_0VDC << Format( "Engineering", 12 );
dt:DC_1VDC << Format( "Engineering", 12 );
dt:DC_3VDC << Format( "Engineering", 12 );
dt << Contour Plot(
X( :X, :Y),
Y( :DC_1VDC ),
Legend( 2 ),
Show Contours( 1 ),
Show Data Points( 1 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Color Theme( "Blue White Red" ),
Specify Contours( min, max, N( 4 ) ),
);
//Close( dt, "nosave" );
);
);此 JSL 在目錄中打開 .CSV 文件並為每個文件繪製等高線圖。
問題是會打開一個對話框來確認每個繪圖的 MAX/MIN 和等值線層數。

你如何防止這種情況發生?
謝謝你。