Click or drag to resize

IDfsuBuilder Interface

Builder for creating a dfsu file.

See DfsuBuilder for details

Namespace:  DHI.Generic.MikeZero.DFS.dfsu
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public interface IDfsuBuilder

The IDfsuBuilder type exposes the following members.

Properties
  NameDescription
Public propertyApplicationTitle
Get/Set the title of the application writing the file.
Public propertyApplicationVersion
Set the version number of the application writing the file.
Public propertyFileTitle
Get/Set the title of the file.
Top
Methods
  NameDescription
Public methodAddDynamicItem
Add a dynamic item.
Public methodCreateFile
Create and return a dfsu file
Public methodCreateStream
Create and return a dfsu file, writing content to stream
Public methodSetElementIds
Set the element id's. Optional. If not set, default values are used (1,2,3,...)
Public methodSetElements
Set element connectivity: For each element is specified which nodes the element consist of. The node is specified by its index into the list of nodes.
Public methodSetFromMeshFile
Public methodSetNodeIds
Set the node id's. Optional. If not set, default values are used (1,2,3,...)
Public methodSetNodes
Set node coordinates and code. Depending on the projection string, node coordinates are in meters or degrees.
Public methodSetNumberOfTimeSteps
Sets the number of time steps in the file.

This is only required in streaming context, where it is not possible to update the dfs header when everything is written to the file. In a non-streaming context this should not be used.

Public methodSetProjection
Set the geographical projection
Public methodSetTimeInfo
Set time info for the temporal axis.
Public methodSetZUnit
Set unit of the z coordinate. By default the unit is meters, but the unit can be overridden by setting it explicitly here. The unit must be a length unit (convertable to meters).
Public methodValidate
Validate will return a string of issues from the item builder. When this returns an empty list, the item has been properly build.
Top
See Also