IFClite TypeScript API
    Preparing search index...

    Function countStepEntities

    • Count the entity instances (#123=...) in a STEP/IFC export. Zero means the DATA; section is empty — a header-only file that round-trips to nothing.

      The Rust STEP writer emits one instance per line, so an anchored per-line match counts instances without a full STEP parse. A #123 appearing as a reference inside another instance's attribute list is never at the start of a line, so it cannot inflate the count.

      Parameters

      • step: Uint8Array

      Returns number