Skip to main content

extract()

extract(deps, inputPath, elementIds, outputPath): void

Extract specific building elements from an IFC file into a new IFC file.

Produces a single valid IFC containing only the requested elements and all of their dependencies (geometry, materials, styles, property sets). Void/fill coupling (wall + opening + door/window) and aggregation (roof + slabs, stair + flights) are automatically expanded so the output stays structurally consistent.

Parameters

ParameterTypeDescription
depsIfcSplitterDeps-
inputPathstringAbsolute or relative path to the source IFC file.
elementIdsnumber[]

Array of IFC entity IDs (#id) for the building elements to extract.

Non-element or missing IDs are skipped with a warning.

outputPathstringPath for the output IFC file.

Returns

void