Skip to main content

Module table

Module table 

Source
Expand description

Tables of values by path (#474): the facade’s ifc::sheet.

IfcModel::export_table writes the entities a selector selects as a table, the key column (GlobalId, or id) first and one column per value path, as CSV, TSV or XLSX bytes. IfcModel::import_table reads one back: rows are matched by key, every other cell is written by its header’s path as one checked transaction, a cell that reads what the model holds changes nothing, and any refusal refuses the table with nothing written. The answer is a TableImport: the planned changes and every refusal by row and column, so a host shows them all, and dry_run plans without writing.

A table, selector or format the call cannot start from (an unknown format or key name, a selector or path that does not parse, an unsupported release, XLSX in a build without sheet-xlsx) raises the usual error; refusals of the table’s own rows and cells are data.

Structs§

TableChange
One value an import changes.
TableImport
What IfcModel::import_table planned, and whether it wrote it.
TableRefusal
One refused table, row or cell.