Expand description
The flat encoder: AttributeValue and decoded property rows into the
PropValue / PropertySet shape CSV, JSON, JSON-LD, IFCX, USD, BOS and
the Python binding read (D41). The other encoder is render::columnar.
Moved from rust/export/src/model_props.rs (C6-8, #7783).
Structs§
- Rendered
- A property value rendered for the flat exports.
Constants§
- EXPORT_
PROPERTY_ SCOPE - The property kinds the flat exports write: all seven (EXPORT-DATA-2, D47).
Functions§
- decode_
property_ set - Decode one
IfcPropertySetdefinition into our model. - flat_
property - One decoded property in the flat exports’ shape;
Nonefor a nameless property or one with no value to show. - fmt_num
- Format an f64 without noisy trailing zeros (
1.0->1,1.50->1.5), and otherwise with the shortest digits that parse back to the same value (what JSString(n)shows for the same value in the ranges that matter). - map_
enum - Map an IFC boolean/logical enum token to a friendly string.
- new_
property_ decoder - The model’s property decoder: one per export, so one complex-property budget per model (#7675).
- opt_
string - ref_
list - Collect the entity references in a STEP list attribute (e.g.
(#44,#45)), dropping nulls/non-refs. An absent or$attribute yields an emptyVec. - render_
attributes - Render the attributes an entity’s own IFC class declares, by schema name.
- render_
value - Render an
AttributeValue(single property value) to its display string, type tag and primitive kind. Typed values likeIFCLABEL('x')decode toAttributeValue::Typed; the kind comes from its value. A list is not a single value and renders nothing (it used to render its second item under its first item’s name when the first was a string, F3c). - resolve_
pset_ defs Deprecated - Resolve a list of property/quantity set definition ids into non-empty
(property_sets, quantity_sets), dropping undecodable refs. Each id is resolved on its own, so a repeated id yields a repeated set.