model.blockModel
Import and export block-model CSV data.
3 functions / 0 types
Index
| Function | Description |
|---|---|
| exportCsvString | Export a block model in the model store to a CSV string. |
| importCsv | Load a block model from a CSV. |
| importCsvString | Load a block model from an inline CSV string into the model store. |
exportCsvString
exportCsvString(args: { model: RemoteHandle }, transactionId?: string): Promise<string>Export a block model in the model store to a CSV string.
Returns Promise<string>.
model : RemoteHandle
Guid of the block model to export (hyphenated UUID string).
transactionId optional : string
importCsv
importCsv(args: { headerConfig: ModelCsvHeaderConfigMap; path: string }, transactionId?: string): Promise<RemoteHandle>Load a block model from a CSV.
Returns: An opaque reference to stored blob data.
Returns Promise<RemoteHandle>.
headerConfig : ModelCsvHeaderConfigMap
Import configuration for each CSV column, keyed by the column’s header name.
path : string
Path to the CSV
transactionId optional : string
importCsvString
importCsvString(args: { csv: string; headerConfig: ModelCsvHeaderConfigMap }, transactionId?: string): Promise<RemoteHandle>Load a block model from an inline CSV string into the model store.
Returns: An opaque reference to stored blob data.
Returns Promise<RemoteHandle>.
csv : string
CSV content (header row plus one row per block).
headerConfig : ModelCsvHeaderConfigMap
Import configuration for each CSV column, keyed by the column’s header name.
transactionId optional : string