IfcOpenShell

From Wiki.OSArch
Revision as of 18:10, 22 November 2020 by Cyril (talk | contribs) (Add some contained tools info and some project using ifcopenshell)
Ifcopenshell logo.png IfcOpenShell IfcOpenShell is a C++ and Python open source software library that helps users and software developers to work with the IFC file format. The IFC file format can be used to describe building and construction data. The format is commonly used for Building Information Modelling. LGPL-3.0

IfcOpenShell is an open source (LGPL 3) software library that helps developers work with the industry foundation classes (IFC) file format. The IFC file format can be used to describe building and construction data. The format is commonly used for building information modelling (BIM), for example, mechanical loading analysis, and thermal and energy efficiency studies. IfcOpenShell is primarily a collection of C++ libraries, however, as it has Python bindings, it can be integrated with programs like FreeCAD and Blender.

Tools

IfcOpenshell contains multiple tools which can be used independently or together :

IfcConvert

A command line tool to convert IFC to different format including :

.obj WaveFront OBJ (a .mtl file is also created)
.dae Collada Digital Assets Exchange
.glb glTF Binary glTF v2.0
.stp STEP Standard for the Exchange of Product Data
.igs IGES Initial Graphics Exchange Specification
.xml XML Property definitions and decomposition tree
.svg SVG Scalable Vector Graphics (2D floor plan)
.ifc IFC-SPF Industry Foundation Classes

You can pass multiple options. Type IfcConvert --help to learn more (considering it is installed on your system).

IfcGeomServer

A command-line tool which allow to process geometry in a crash safe manner using a child process with dynamic linking.

IfcOpenShell-python

A python API to manipulate IFC. See IfcOpenShell code examples.

IfcBlender

Warning Warning: Superseeded by BlenderBIM Add-on.


The first Blender plugin created to import ifc into Blender.

IfcMax

Warning Warning: This plugin seems to not be developed anymore.


An Ifc importer for 3ds Max.

Softwares powered by ifcopenshell

Many software rely on ifcopenshell for their IFC support and more :

  • BIMxBEM : import IfcRelSpaceBoundary, IfcSpace and related building elements geometry and data
  • BlenderBIM Add-on : ifcopenshell-python - import/export, multi-core geometry processing and more
  • FreeCAD : ifcopenshell-python - import/export
  • ifc-pipeline : IfcConvert / ifcopenshell - python

Installation

IfcOpenShell may be packaged in different Linux repositories, ready to install and use; or it can be packaged together with some programs that use it, for example, FreeCAD.

In other cases you may get one of the stand-alone, pre-compiled distributions, or you may download and compile the source code yourself.

To learn more about installing IfcOpenShell, visit the page in the FreeCAD wiki: IfcOpenShell.

Learn more

External Resources

https://github.com/jakob-beetz/IfcOpenShellScriptingTutorial (by Jakob Beetz)

https://github.com/bimfag/intro-python-bim (by Sigve Martin Pettersen and Hans Martin Eikerol)