Actions5
Overview
This node extracts information from IFC (Industry Foundation Classes) files using the web-ifc library. It supports multiple operations such as extracting all elements, extracting elements by a specific IFC type, extracting elements with their properties, extracting properties for specific elements, and retrieving basic file information. This node is useful in scenarios where users need to analyze or manipulate building and construction data stored in IFC files, such as extracting walls, doors, or windows for further processing or reporting.
Use Case Examples
- Extract all elements from an IFC file to get a complete dataset of building components.
- Extract only walls (IFCWALL) from an IFC file to focus on structural analysis.
- Extract elements with their properties to get detailed information about specific building components.
- Retrieve basic information about an IFC file to understand its contents before processing.
Properties
| Name | Meaning |
|---|---|
| Include Properties | Whether to automatically resolve and include element properties when extracting elements. |
| IFC Type | The specific IFC type to extract, such as IFCWALL, IFCDOOR, or IFCWINDOW. |
| Input Data Source | Specifies the source of the IFC file data, either from binary data of a previous node or directly from a file path. |
| Binary Property | The name of the binary property that contains the IFC file data when using binary data as input. |
| File Path | The path to the IFC file on the filesystem when using file path as input. |
Output
JSON
operation- The operation performed, e.g., extractAll, extractByType, extractWithProperties, extractProperties, getFileInfo.allElements- When extracting all elements, contains the extracted elements data.elementsByType- When extracting by type, contains the elements of the specified IFC type.elementsWithProperties- When extracting elements with properties, contains the elements and their resolved properties.properties- When extracting properties for specific elements, contains the properties of those elements.fileInfo- When getting file info, contains basic information about the IFC file.error- Error message if an error occurred during execution.
Dependencies
- web-ifc library for IFC file parsing and extraction
- Node.js fs module for file system operations
Troubleshooting
- Ensure the IFC file path is correct and accessible when using file path input source.
- Verify that the binary property name matches the property containing IFC data when using binary data input source.
- Initialization of the web-ifc API may fail; check console warnings for details and ensure the environment supports WebAssembly.
- If an unknown operation error occurs, verify that the operation parameter is set to a supported value.
- If extraction fails, check that the IFC type or element IDs provided are valid and exist in the IFC file.
Links
- web-ifc GitHub Repository - The web-ifc library used for parsing and extracting data from IFC files.