BCSVTO
Use this program to create a block model from a nominated CSV file.
The format of the CSV file should be:
Line 1 |
This line contains the field names of the data in the CSV file. These names consist of seven standard field names (X, Y, and Z coordinates of the block centre, X, Y, and Z lengths of the block and block volume), and the variable names (there is no limit to the number of variables). |
Lines 2, 3, 4 |
These lines contain information about the variable fields. Line 2 contains the variable description, line 3 the type and line 4 the default value. No data is contained in the first seven fields. The first field of each line does, however, contain the name. For example, field 1 of line 2 contains variable description. |
Lines 5... |
These lines contain the block data (one line per block). The block centroids are in real world coordinates. |
Figure 1: Extract from a CSV file
Note
As long as the X, Y, and Z coordinates of the block centroids and the X, Y, and Z lengths of the blocks are in the first 7 fields and the variable data starts from the eighth field, the order is not important. The volume, which appears in the 7th field in an exported CSV file, is not used in the importing process.
Vertical corner offsets, if they exist in the CSV file, will also be imported into the nominated block model file.
Usage:
bcsvto <csv name> <defn name> <block model name> INDEX|NOINDEX |
Where:
Option |
Description |
---|---|
<csv name> |
Refers to the name of the CSV file ( |
<defn name> |
Refers to the name of the block model definition file ( |
<block model name> |
Refers to the name of the resulting block model file. |
INDEX|NOINDEX |
Use this to specify whether or not to create a spatial index of the block model. |