Module metadata

Module metadata 

Source
Expand description

Entity metadata extraction.

ConstantsΒ§

UNKNOWN_TYPE_FALLBACK πŸ”’
Unknown-type fallback, mirroring the WASM path’s extractRootAttributesFromEntity: GlobalId 0, Name 2, Description 3, ObjectType 4, Tag 7 (the IfcElement/IfcRoot layout), and NO PredefinedType. Applied only when the type is absent from the schema registry β€” a KNOWN type without an attribute keeps its -1 and stays empty on both parse paths (issue #3949 extended this fallback to GlobalId/Name).

FunctionsΒ§

enum_at πŸ”’
PredefinedType enum token at a registry index. STEP enums decode to AttributeValue::Enum with the dots already stripped (.SOLIDWALL. β†’ SOLIDWALL), matching the WASM extractAllEntityAttributes display value β€” read via as_enum(), never get_string().
extract_entity_metadata πŸ”’
Extract entity metadata for all entities.
string_at πŸ”’
Non-empty string attribute at a registry index (-1 = not declared).