GithubHelp home page GithubHelp logo

jakob-beetz / ifcopenshell-notebooks Goto Github PK

View Code? Open in Web Editor NEW
87.0 9.0 26.0 5.99 MB

Interactive Jupyter Notebooks to teach working with IFC files using ifcopenshell

License: MIT License

Jupyter Notebook 87.98% Python 12.02%

ifcopenshell-notebooks's Introduction

DOI

Binder

screenshot of jupyter=notebook

ifcopenshell-notebooks

Interactive Jupyter Notebooks to teach working with IFC files using ifcopenshell with python.

These Notebooks are part of mandatory classes for Bachelor students of Architecture at the RWTH Aachen University and have advanced versions for MSc levels. The notebooks usually run on the Jupyter Hub of the RWTH Aachen but can be run on other Jupyter Notebook VMs. They are published as Open Educational Resources

To run the notebooks interactively, click the binder link above, a few seconds patience and you will be able to enjoy:

  • Integrated IFC Viewer with bidirectional ability to
    • select from script, get selection from mouse to script
    • see attributes of building element instances
    • set visibility, colors and transparancy from script
  • display model structure using GraphViz Dot dot vizualization
  • Browse IFC 2x3 and IFC 4 documentation right in your notebook IfcHelp.getHelp3("IfcDoor") documentation in browser
  • use pandas, numpy etc. to do calculations on models
  • reach through to the powerfull OpenCascadeKernel

If you like the work, please

  • cite it, please use this DOI DOI
  • sponsor aothms and tpaviot whose great work this is based upon
  • write s.th. into the forum, add a pull request
  • help improve it!
  • come to RWTH to study with us!
  • more ideas are welcome

ifcopenshell-notebooks's People

Contributors

jakob-beetz avatar rvba avatar seb-esser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ifcopenshell-notebooks's Issues

07_import_export

Trying to run this in binder and on local environment. Having issues with the 2nd step in this process.
image
TIA - Edgar

OCC version in Binder doesn't have BRepAlgoAPI

Hello,
thanks so much for your job especially with creating the environment to run on Jupyter ifcopenshell.
I am working with the binder notebook and need to do extraction of sections.
To do so, I am using
BRepAlgoAPI.BRepAlgoAPI_Section()
but unfortunately on the version installed (OCC core 7.4.1-dev) it happens that

module 'OCC.Core' has no attribute 'BRepAlgoAPI'

Can I ask you please if you know how to solve this?
Thanks in advance

Tiberio

Failed to load model class 'RenderModel' from module 'jupyter-threejs'

Hi,
thanks for your Work!
I Tried to build my own conda-env with your notebooks but everytime i start the viewer i get this error:
[Open Browser Console for more detailed log - Double click to close this message] Failed to load model class 'RendererModel' from module 'jupyter-threejs' Error: Script error for "jupyter-threejs" http://requirejs.org/docs/errors.html#scripterror at makeError (http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:168:17) at HTMLScriptElement.onScriptError (http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1735:36)
any idea, whats going on?

05_hello_viewer.ipynb: Viewer does not "pop up" and fails kernel - Not an issue

Hi,

First, I would like to thank you for this work.
I'm now stepping to both the IFC world and Python and I find it a great stepping stone.

To my issue:

I am running the file "05_hello_viewer.ipynb" with Jupyter notebook.
when I reach the line "viewer = JupyterIFCRenderer(m, size=(400,300))" I get an error "The kernel appears to have died. It will restart automatically".

running in VScode, I don't get such an error, but the viewer certainly does not 'pop up'

For all I know, I have installed the required packages:
conda install -c conda-forge pythonocc-core=7.5.1
conda install -c conda-forge -c oce -c dlr-sc -c ifcopenshell ifcopenshell
conda install -c conda-forge matplotlib # ("$ conda install -c conda-forge pyqt" might be sufficient)

I managed to create and displaying a cube on the screen using:
'''
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox
from OCC.Display.SimpleGui import init_display

display, start_display, add_menu, add_function_to_menu = init_display()

my_box = BRepPrimAPI_MakeBox(10.,20.,30.).Shape()

display.DisplayShape(my_box, update=True )
start_display()
'''

Thank you,
Alon

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.