Skip to content

model.block_model

Import and export block-model CSV data.

3 functions / 4 types

Index

FunctionDescription
ExportCsvStringExport a block model in the model store to a CSV string.
ImportCsvLoad a block model from a CSV.
ImportCsvStringLoad a block model from an inline CSV string into the model store.
TypeDescription
ExportCsvStringExport a block model in the model store to a CSV string.
ExportCsvStringResponse
ImportCsvLoad a block model from a CSV.
ImportCsvStringLoad a block model from an inline CSV string into the model store.

ExportCsvString

RPC

ExportCsvString(request: model.block_model.ExportCsvString) -> model.block_model.ExportCsvStringResponse

Export a block model in the model store to a CSV string.

Service method: spatialengine.v1.model.block_model.ModelBlockModel.ExportCsvString.

Returns model.block_model.ExportCsvStringResponse.

model : RemoteHandle

Guid of the block model to export (hyphenated UUID string).

ImportCsv

RPC

ImportCsv(request: model.block_model.ImportCsv) -> RemoteHandle

Load a block model from a CSV.

Service method: spatialengine.v1.model.block_model.ModelBlockModel.ImportCsv.

Returns RemoteHandle.

path : string

Path to the CSV

header_config : model.csv.HeaderConfigMap

Import configuration for each CSV column, keyed by the column’s header name.

ImportCsvString

RPC

ImportCsvString(request: model.block_model.ImportCsvString) -> RemoteHandle

Load a block model from an inline CSV string into the model store.

Service method: spatialengine.v1.model.block_model.ModelBlockModel.ImportCsvString.

Returns RemoteHandle.

csv : string

CSV content (header row plus one row per block).

header_config : model.csv.HeaderConfigMap

Import configuration for each CSV column, keyed by the column’s header name.

ExportCsvString

Message

Export a block model in the model store to a CSV string.

model : RemoteHandle

Guid of the block model to export (hyphenated UUID string).

ExportCsvStringResponse

Message

value optional : string

ImportCsv

Message

Load a block model from a CSV.

path : string

Path to the CSV

header_config : model.csv.HeaderConfigMap

Import configuration for each CSV column, keyed by the column’s header name.

ImportCsvString

Message

Load a block model from an inline CSV string into the model store.

csv : string

CSV content (header row plus one row per block).

header_config : model.csv.HeaderConfigMap

Import configuration for each CSV column, keyed by the column’s header name.