Skip to main content

IfcPropertyQuery

A query that checks the properties in the property sets assigned to IFC items.

Extends

Properties

ids

ids: object = {}

The IDs of the match items per model.

Index signature

[modelID: string]: Set<number>

Inherited from

IfcFinderQuery . ids


inclusive

inclusive: boolean = false

If false, ALL rules of the query must comply to make a match. If true, ANY rule will be enough to make a match.

Inherited from

IfcFinderQuery . inclusive


name

name: string

IfcFinderQuery.name

Overrides

IfcFinderQuery . name


needsUpdate

needsUpdate: Map<string, boolean>

Whether this query is up to date or not per file. If not, when updating the group where it belongs, it will re-process the given file.

Inherited from

IfcFinderQuery . needsUpdate


onProgress

readonly onProgress: Event<number>

Event used to notify the progress when performing a query on an IFC file.

Inherited from

IfcFinderQuery . onProgress


rules

rules: IfcFinderRule[] = []

The list of rules to be applied by this query.

Inherited from

IfcFinderQuery . rules


importers

static importers: Map<string, (components, data) => IfcFinderQuery>

The list of functions to import the queries. If you create your own custom query, you should add its importer here. See the other queries provided by the library for reference.

Inherited from

IfcFinderQuery . importers


type

static type: "IfcPropertyQuery"

The type of this query.

Accessors

items

get items(): FragmentIdMap

IfcFinderQuery.items

Returns

FragmentIdMap

Methods

clear()

clear(modelID?): void

Clears the data of the given model. If not specified, clears all the data.

Parameters

ParameterTypeDescription
modelID?stringID of the model whose data to clear.

Returns

void

Inherited from

IfcFinderQuery . clear


export()

export(): SerializedQuery

IfcFinderQuery.export

Returns

SerializedQuery

Overrides

IfcFinderQuery . export


update()

update(modelID, file): Promise<void>

IfcFinderQuery.update

Parameters

ParameterType
modelIDstring
fileFile

Returns

Promise<void>

Overrides

IfcFinderQuery . update


import()

static import(components, data): null | IfcFinderQuery

Imports a query given its data. This data can be generating using its IfcFinderQuery.export method.

Parameters

ParameterTypeDescription
componentsComponentsthe instance of Components used by this app.
dataobjectthe data of the query to import as a serializable object.

Returns

null | IfcFinderQuery

Inherited from

IfcFinderQuery . import


importIds()

static importIds(data): object

Imports the given IDs. Only use this when writing your own custom query. See the other queries provided by the library for reference.

Parameters

ParameterTypeDescription
dataSerializedQuerythe serialized object representing the query whose IDs to parse.

Returns

object

Inherited from

IfcFinderQuery . importIds


importRules()

static importRules(serializedRules): IfcFinderRule[]

Imports the given serialized rules. Only use this when writing your own custom query. See the other queries provided by the library for reference.

Parameters

ParameterTypeDescription
serializedRulesobject[]the rules to be parsed.

Returns

IfcFinderRule[]

Inherited from

IfcFinderQuery . importRules