Click or drag to resize
IDfsFileIOWriteItemTimeStep Method
Writes data to the specified item and timestep in the file.

If the item-timestep exists already, data is updated. If it does not exist, the item number and timestep index must match exactly the next item-timestep after the last one in the file.

The size of the data must match the data size of the item that is to be written.

The time value is only relevant for files with non-equidistant time axis. For files with an equidistant time axis, the time value is ignored, and a zero can be used.

Namespace: DHI.Generic.MikeZero.DFS
Assembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
void WriteItemTimeStep(
	int itemNumber,
	int timestepIndex,
	double time,
	Array data
)

Parameters

itemNumber
Type: SystemInt32
Number of item to write. 1-based.
timestepIndex
Type: SystemInt32
Index of time step to write. 0-based.Værso
time
Type: SystemDouble
Time relative to start of file, in unit specified in time axis
data
Type: SystemArray
Data to write to file
See Also