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
| Parameter | Type | Description |
|---|---|---|
deps | IfcSplitterDeps | - |
inputPath | string | Absolute or relative path to the source IFC file. |
elementIds | number[] | Array of IFC entity IDs ( Non-element or missing IDs are skipped with a warning. |
outputPath | string | Path for the output IFC file. |
Returns
void