LoadFile [Grid]
LoadFile is superceded by LoadFile2. If you wish to specify import options use LoadFile2. The LoadFile method has been retained for backward compatibility.
LoadFile loads the specified grid file. When the HeaderOnly parameter is set to 'True', only the header is loaded, not the entire grid. When the HeaderOnly parameter is set to 'False', the entire grid is loaded.
Syntax
object.LoadFile( FileName, HeaderOnly)
Parameter |
Type |
Required/ Optional |
Default |
Description |
FileName |
String |
Required |
|
This provides the path and file name of the grid file. |
HeaderOnly |
Boolean |
Required |
|
This specifies whether the grid header would be loaded without loading the entire matrix of grid nodes |
Example
This example demonstrates how to load a new grid.
Grid.LoadFile(FileName:=SurferApp.Path+"\Samples\demogrid.grd", HeaderOnly:=True)
Used by: Grid object , GridXYZC object