Skip to content

This repository shows how to process, update or create IFC (Industry Foundation Class) files automatically with python. The examples show how to parse geological/geotechnical related IFC Files that originate from Leapfrog Works.

License

Notifications You must be signed in to change notification settings

vmarquar/ifc-geology-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IFC & Leapfrog & Geological Modelling examples

Dependencies

  • numpy
  • ifcopenshell for Examples 01, 02 & 03
  • ezdxf for Examples 04, 05 & 07
  • wellpathpy for Example 07

Examples

  • ifc-geology-example/example1_parse-leapfrog-boreholes-to-csv.py shows how to parse an ifc file created from Leapfrog Works. It will extract all boreholes and their intervals into 2 csv files.

  • ifc-geology-example/example2_add-pset-to-geological-units.py shows how to retrieve all geological units / volume bodies and shows how to add PSETs and Properties to the geological units using a csv helper file. Additionally it can compute the volume of all geological bodies.

  • ifc-geology-example/example3_create-spheres.py shows how to create an ifc file from scratch and create random spheres and attach a pset and properties to each of them.

  • example3_create-spheres.py creates a series of spheres and attaches some example pset to them. The shapes are exported to an ifc file.

  • example4_create_dxf_solids_and_ifc_together.py WIP

  • example5_spheres_cylinders_and_cones.py

  • example7_sperical_arc_approximation.py

Useful links

Installation

pip install ifcopenshell or poetry add ifcopenshell or after downloading from git poetry install or poetry install --no-root

About

This repository shows how to process, update or create IFC (Industry Foundation Class) files automatically with python. The examples show how to parse geological/geotechnical related IFC Files that originate from Leapfrog Works.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages