Skip to content

A python program tool for extracting the structural hierarchy of the building elements within an IFC into the metadata format of the xeokit-sdk.

Notifications You must be signed in to change notification settings

bbrangeo/python-metadata-xeokit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

A python program tool for extracting the structural hierarchy of the building elements within an IFC into the metadata format of the xeokit-sdk.

Usage

$ python main.py --ifc_input MAISON_EP_0.ifc --json_output metaModel.json

JSON

Example:

{
  "id": "0001",
  "project_id": "0m7dsGszf588Nx0jOsYoXj",
  "type": "IfcProject",
  "meta_objects": [
    {
      "id": "0KsWlSZqr1J8RaEJrb86Du",
      "name": "Mur de base:Générique - Ext. 200 mm:250674",
      "type": "IfcWallStandardCase",
      "parent": "0m7dsGszf588Nx0jR9TDNz"
    },
    {
      "id": "0KsWlSZqr1J8RaEJrb86Fd",
      "name": "Mur de base:Générique - Ext. 200 mm:250797",
      "type": "IfcWallStandardCase",
      "parent": "0m7dsGszf588Nx0jR9TDNz"
    },
    {
      "id": "0KsWlSZqr1J8RaEJrb86HC",
      "name": "Mur de base:Générique - Ext. 200 mm:250886",
      "type": "IfcWallStandardCase",
      "parent": "0m7dsGszf588Nx0jR9TDNz"
    },
    {
      "id": "0KsWlSZqr1J8RaEJrb86GL",
      "name": "Mur de base:Générique - Ext. 200 mm:250975",
      "type": "IfcWallStandardCase",
      "parent": "0m7dsGszf588Nx0jR9TDNz"
    },
    {
      "id": "0KsWlSZqr1J8RaEJrb86IN",
      "name": "Mur de base:Int. Brique 40 mm:251101",
      "type": "IfcWallStandardCase",
      "parent": "0m7dsGszf588Nx0jR9TDNz"
    },
    {
      "id": "0KsWlSZqr1J8RaEJrb86Kv",
      "name": "Mur de base:Int. Brique 40 mm:251251",
      "type": "IfcWallStandardCase",
      "parent": "0m7dsGszf588Nx0jR9TDNz"
    },
    {
      "id": "0KsWlSZqr1J8RaEJrb86Nb",
      "name": "Sol:Dalle en béton - 250 mm:251311",
      "type": "IfcSlab",
      "parent": "0m7dsGszf588Nx0jR9TDNz"
    }
  ]
 }

Credits

Created by Tipee for the xeokit-sdk using the IfcOpenShell libraries.

About

A python program tool for extracting the structural hierarchy of the building elements within an IFC into the metadata format of the xeokit-sdk.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages