Python CLI Tool to Extract Material Volumes from IFC Files #7665
Replies: 6 comments 5 replies
-
|
Nice! If I may, I think it's really important to document assumptions. Assumption are not bad, they're required to make progress and release things, but for example:
|
Beta Was this translation helpful? Give feedback.
-
|
Very cool! Have you looked at ifcqto and ifccsv? A qto mapping for materials and new functions to address layers might be more portable and flexible.
Dion Moult
Sent from [Proton Mail](https://proton.me/mail/home) for Android.
|
Beta Was this translation helpful? Give feedback.
-
|
Sorry yes, its called Ifc5d, I got mixed up with our internal wrapper :)
Dion Moult
Sent from [Proton Mail](https://proton.me/mail/home) for Android.
|
Beta Was this translation helpful? Give feedback.
-
|
Yes, unfortunately it's not particularly well documented. It's probably best for now to read the readme in the `src/ifc5d` directory. You will also find json files mapping quantities to calculators.
Apart from functions related to converting between IFC to CSV and spreadsheets and parsing schedules of rates and BOQs, the bit you're probably interested in is the mappings and calculators. At a high level, there are different "calculators", which expose functions and geometry kernels. E.g. the IfcOpenShell calculator has functions for "get_top_elevation" and "get_footprint_perimeter". Then, there is a JSON file mapping quantities in quantity sets to these calculator functions. There is also a Blender calculator which uses Blender meshes and Blender's bmesh capabilities to calculate quantities.
Some fresh eyes and better organisation would be really good and help reduce rework :)
|
Beta Was this translation helpful? Give feedback.
-
|
Update: we have migrated the project to use uv for dependency managment. Getting started is now much simpler: No more manual venv setup or Pip still works: |
Beta Was this translation helpful? Give feedback.
-
|
Quick update after some real-world testing. Two fixes worth flagging since they touch points raised above:
Tested on a millimeter |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
we have built an open-source Python CLI tool called "IFC Material QTO" for extracting material volumes from IFC files. We think that it could be useful for LCA, cost estimation and general BIM workflows.
What can you do with it?
Extract per-material volumes from one or multiple IFC files
Handle volume calculation for layered materials
If IFC quantities are missing, use element's shape geometry for volume calculation
verbose/quiet logging
Hope this could benefit your project work.
Feedback would be much appreciated!
https://github.com/infra-plan/ifc-material-qto
Beta Was this translation helpful? Give feedback.
All reactions