hxaxtma |
March 10, 2015 08:28 |
Loop over zones and Write DataSet
Hi guys,
simple problem, I want to loop over all zones and save eacht Zones as ascii data *.dat
This is what I got so far
Code:
#!MC 1410
$!VarSet |MFBD| = ''
$!VarSet |Iterate|=(|NumZones|-1)
$!Loop |Iterate|
$!WRITEDATASET "xl.lasym.u_xy_l57000k000_153_sorted_slice_t"|Iterate|".dat"
INCLUDETEXT = NO
INCLUDEGEOM = NO
ZONELIST = [|Iterate|]
BINARY = NO
USEPOINTFORMAT = YES
PRECISION = 9
TECPLOTVERSIONTOWRITE = TECPLOTCURRENT
$!EndLoop
$!RemoveVar |MFBD|
Problem is, it is all written in a file with iterate number 59!!!
I want 59 files with ...1.dat, ...2.dat, ..3.dat
What is wrong here?
|