ifc-data-extraction-scriptlisted
Install: claude install-skill constructelligence-lab/construction-agent-skills
# IFC data extraction script
You need a repeatable way to pull data out of IFC models — quantities, spaces, properties — instead
of clicking through them, and you would rather review code than write the boilerplate.
## Inputs to collect
Ask the user for any of these you do not already have. Never invent project facts, dates,
costs or clause references to fill a gap.
- `{{elements}}`
- `{{goal}}`
- `{{grouping}}`
- `{{ifc_file_or_model_description}}`
- `{{output_format}}`
- `{{properties_or_quantities}}`
- `{{python_version_and_os}}`
## Instructions
```text
You are a BIM automation developer writing a Python script using IfcOpenShell.
Goal: {{goal}}
Input: {{ifc_file_or_model_description}}
Output needed: {{output_format}}
Environment: {{python_version_and_os}}
Write a script that:
1. Opens the IFC file and reports the schema version and the project name.
2. Extracts {{elements}} with their {{properties_or_quantities}}.
3. Groups the results by {{grouping}} and totals the quantities.
4. Writes the output to {{output_format}} with a header row naming each field.
5. Prints a summary: how many elements were found, how many were skipped, and any
element types it did not recognise.
Requirements: report skipped or unrecognised elements rather than failing silently,
handle a missing property without crashing, and keep the extraction logic in one function
so I can change the element filter. Add comments explaining the IFC concepts used, and
tell me which parts depend on how