IFClite TypeScript API
    Preparing search index...

    Function parseRuleBlock

    • Parses a RuleBlock, restricting which FilterRule kinds may appear. Pass null for applicability/groupBy.universe (same vocabulary a saved search filter allows, minus elevation/ref-carrying storey, checked unconditionally below); pass ELEMENT_REQUIREMENT_KINDS for an element requirement's block.

      Parameters

      • raw: unknown
      • where: string
      • allowedKinds:
            | ReadonlySet<
                | "model"
                | "attribute"
                | "property"
                | "quantity"
                | "material"
                | "classification"
                | "type"
                | "storey"
                | "modelTag"
                | "ifcType"
                | "predefinedType"
                | "name"
                | "globalId"
                | "elevation"
                | "parent"
                | "group"
                | "modelFact"
                | "listCondition",
            >
            | null

      Returns RuleBlock