Difference between revisions of "BlenderBIM Add-on/Using the Python console with BlenderBIM Add-on"
From Wiki.OSArch
(Created page with "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 th...") |
|||
Line 1: | Line 1: | ||
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: | 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: | You can launch an interactive Python shell letting you query BIM data in real-time. To do so: | ||
− | + | # [https://blenderbim.org/install-blenderbim.html 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 <code>import ifcopenshell</code> and it'll work! Have fun! | |
Alternatively, you can write a full script from a text file and run it. | Alternatively, you can write a full script from a text file and run it. |
Revision as of 22:54, 22 June 2020
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.