bbrangeo / python-metadata-xeokit

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Python 100.0%