BlenderBIM Add-on/Using the Python console with BlenderBIM Add-on
From Wiki.OSArch
< BlenderBIM Add-on
Revision as of 22:54, 22 June 2020 by 1.42.32.145 (talk)
The BlenderBIM Add-on comes with my useful Python libraries to interrogate BIM data, in addition to the math and geometry libraries that Blender comes with. A short list of these additional libraries is provided:
- IfcOpenShell - used for querying, writing, and manipulating IFC data and files
- bcfplugin - used for querying, writing, and manipulating BCF data and files
- fcl - used for writing custom logic for clash detection
- OCC - used or directly accessing the OpenCascade geometry kernel for low-level geometric analysis
- svgwrite - used for writing SVG for construction documentation
- ifcdiff - used for comparing IFC files for changes
- ifccsv - used for exporting and importing BIM data with CSV
- ifcclash - a frontend of FCL, allowing you to trigger clash sets for collision detection
You can launch an interactive Python shell letting you query BIM data in real-time. To do so:
- Install the BlenderBIM Add-on and ensure it is enabled
- Switch to the Blender Python Console mode.
- There is no step 3. You can type in
import ifcopenshell
and it'll work! Have fun!
Alternatively, you can write a full script from a text file and run it.