Skip to main content

material_schema

Function material_schema 

Source
pub fn material_schema(model: &Model) -> MaterialResult<SchemaVersion>
Expand description

The IFC release model’s material records are read and written against.

A consumer binds its own vocabulary with this answer instead of re-parsing the header. A header with no declaration binds IFC4 (an in-memory model; the 0.2.0 behaviour).

§Errors

MaterialError::MultipleSchemas when the header declares several schemas, and MaterialError::UnsupportedSchema when it declares one this crate is not verified for (including IFC4X1 and IFC4X2).