Types

The IFC class of an object — type with inheritance, NI for exact matches, IN lists and parameters, niceType, occurrences versus type definitions, and the suggestedType and suggestion facets.

Every object has an IFC class (IFCWALL, IFCDOOR, IFCSPACE, …). type reads and tests it; niceType is a readable name; suggestedType is the class BIM.works' classifier proposes for the object.

type#

In GET and GROUP BY, type returns the class name in upper case. In WHERE it takes these forms:

Form Meaning
type = IFCWALL The class or any subclass (IFCWALLSTANDARDCASE matches).
type != IFCWALL Not the class nor a subclass.
type IN (IFCWALL, IFCSLAB), type NOT IN (...) Any of, none of — subclasses included.
type IN $types The list comes from a parameter bound to an array of class names.
type NI = IFCWALL, type NI IN (...) No inheritance: the exact class only.

Class names are upper case and unquoted. A misspelt or lower-case name is flagged at validation with a did-you-mean and rejected at run time with BimWorksQueryError.UNKNOWN_TYPE.

BQL#
GET qid, type, attribute.Name WHERE type = IFCWALL
BQL#
GET type, COUNT(qid) WHERE type NI IN (IFCWALL, IFCWALLSTANDARDCASE) GROUP BY type
BQL#
GET type, COUNT(qid) GROUP BY type

Occurrences and type definitions#

IFCWALLTYPE, IFCDOORTYPE, IFCSPACETYPE and the other *TYPE classes are type definitions without geometry. Querying them answers questions about the type catalogue, not about the building. To select building objects by data of their type, match the occurrence and reach the type through the typeObject relation (Type objects):

BQL#
GET qid, attribute.Name WHERE type = IFCDOOR AND typeObject.attribute.Name CONTAINS "Double"

niceType#

niceType is the class name without the IFC prefix and in readable casing (Wall, Door, WallStandardCase). It can be selected, grouped on and filtered with the string comparators.

BQL#
GET niceType, COUNT(qid) WHERE niceType CONTAINS "Wall" GROUP BY niceType

suggestedType#

On instances with type suggestion enabled, suggestedType is the corrected class BIM.works' classifier proposes per object. It takes exactly the forms of type (=, !=, [NOT] IN, NI, parameters) and is selectable and groupable. Objects of models without suggestions match nothing.

BQL#
GET suggestedType, COUNT(qid) WHERE type = IFCBUILDINGELEMENTPROXY GROUP BY suggestedType
BQL#
GET qid, attribute.Name WHERE suggestedType = IFCDOOR AND type NI = IFCBUILDINGELEMENTPROXY

suggestion facets#

suggestion.<facet> exposes the classifier's verdict per object; every facet is selectable and filterable.

Facet Value
suggestion.status AGREE, REFINEMENT, CONTRADICTION, LOW_CONFIDENCE or NOT_CLASSIFIED — the verdict on the object's class.
suggestion.confidence Calibrated probability of the top suggestion, 0–1.
suggestion.predefinedType The suggested PredefinedType value, to compare with attribute.PredefinedType.
suggestion.predefinedStatus AGREE, REFINEMENT, CONTRADICTION or NOT_APPLICABLE at the PredefinedType level.
suggestion.candidate1 … candidate3 The ranked labels, e.g. IFCSLAB.ROOF.
suggestion.confidence1 … confidence3 Their probabilities.
BQL#
GET type, suggestedType, suggestion.confidence WHERE suggestion.status = "CONTRADICTION" ORDER BY suggestion.confidence

Used in#