render_attributes

Function render_attributes 

Source
pub fn render_attributes(
    entity: &DecodedEntity,
    raw_type_name: &str,
    source_schema: Option<&str>,
) -> Vec<PropValue>
Expand description

Render the attributes an entity’s own IFC class declares, by schema name.

These are not property sets and no IfcRelDefinesByProperties points at them: IfcReinforcingBar.NominalDiameter, IfcDoor.OverallHeight and their like are declared directly on the entity, so a consumer reading only psets cannot see them however inheritance is configured.

raw_type_name is the STEP keyword as written in the file (e.g. "IFCDOORSTYLE"). Its source-schema registry, rather than the merged canonical universe, determines its positional attribute names. Unknown source schemas and entities emit no names rather than borrowing another version’s layout.

Values reuse render_value, so a rendered attribute reads the same as a property with the same underlying type, and anything it declines (entity references, $, derived *) is omitted rather than emitted as a dangling #123. Order follows the schema’s attribute order, which is stable.