GithubHelp home page GithubHelp logo

bbrangeo / python-metadata-xeokit Goto Github PK

View Code? Open in Web Editor NEW
5.0 0.0 1.0 344 KB

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

Python 100.00%
python ifc xeokit xeokit-sdk bim tipee

python-metadata-xeokit's Introduction

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.

python-metadata-xeokit's People

Contributors

bbrangeo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

esiham

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.