Build an IFC Construction Handover Asset Registry — implementation
Linked challenge: Build an IFC Construction Handover Asset Registry
Prompt source
implementation88 lines11 sectionsNo variables1 code block
## Build
Extract spatial containment and equipment metadata from IFC handover models using IfcOpenShell. Audit mandatory asset documentation fields and generate structured computerized maintenance management records.
## User
Facility Operations Handover Manager
## Workflow
1. Upload an IFC building handover file through the operational web dashboard.
2. Parse building storeys and MEP equipment entities using IfcOpenShell.
3. Validate required asset tags and maintenance property sets against handover specifications.
4. Export audited asset inventory records to a simulated computerized maintenance management database.
## Interface
Browser-based facility handover workbench displaying spatial hierarchy trees, property validation status tables, and an asset export button.
## Data
Download open-source sample building IFC models from the official IfcOpenShell academy repository without authentication restrictions.
Starter examples below are synthetic. They are not downloaded records.
## Source
[IfcOpenShell](https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.8.0/README.md)
Uses IfcOpenShell python parsing of IFC equipment elements and ifcfm property extraction routines.
## Tools
pydantic-ai, ifcopenshell, fastapi.
Pydantic AI guarantees type validation and strict schema enforcement for required equipment maintenance attributes.
Fast hosted instruction model via API for attribute discrepancy reporting and missing tag resolution.
## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.
## Acceptance
- Parses IfcFlowTerminal and IfcEnergyConversionDevice elements successfully.
- Detects missing serial number or manufacturer attributes in property sets.
- Outputs valid structured asset registry records adhering to target schema.
## Starter Examples
```json
[
{
"input": {
"model_id": "bldg_01_handover.ifc",
"element": {
"global_id": "2O2$4_zelEkqRuhXD8HGvg",
"entity_type": "IfcPump",
"name": "Chilled Water Primary Pump 1",
"storey": "Basement Level 1",
"property_sets": {
"Pset_PumpOccurrence": {
"SerialNumber": "PUMP-CHW-8831",
"Manufacturer": "FluidDynamics Corp"
}
}
}
},
"expected_output": {
"asset_id": "PUMP-CHW-8831",
"entity_type": "IfcPump",
"location": "Basement Level 1",
"compliance_status": "PASS",
"missing_fields": [],
"cmms_ready": true
}
},
{
"input": {
"model_id": "bldg_02_handover.ifc",
"element": {
"global_id": "1A2B3C4D5E6F7G8H9I0JKL",
"entity_type": "IfcAirHandlingUnit",
"name": "Rooftop AHU 4",
"storey": "Roof",
"property_sets": {
"Pset_AirHandlingUnitOccurrence": {
"SerialNumber": null,
"Manufacturer": ""
}
}
}
},
"expected_output": {
"asset_id": "UNKNOWN",
"entity_type": "IfcAirHandlingUnit",
"location": "Roof",
"compliance_status": "FAIL",
"missing_fields": [
"SerialNumber",
"Manufacturer"
],
"cmms_ready": false
}
}
]
```
## Safety
External writes to facility management databases are simulated. Requires human sign-off before official closeout approval.
Use mock external writes. Require human review before any real deployment.