Skip to main content

extract()

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

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

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