1919import bpy
2020import ifcopenshell
2121import ifcopenshell .api
22- import blenderbim .tool as tool
22+ import bonsai .tool as tool
2323
2424
2525class LibraryGenerator :
@@ -28,11 +28,9 @@ def generate(self):
2828 ifcopenshell .api .post_listeners = {}
2929
3030 self .file = ifcopenshell .api .run ("project.create_file" )
31- self .project = ifcopenshell .api .run (
32- "root.create_entity" , self .file , ifc_class = "IfcProject" , name = "BlenderBIM Demo"
33- )
31+ self .project = ifcopenshell .api .run ("root.create_entity" , self .file , ifc_class = "IfcProject" , name = "Bonsai Demo" )
3432 self .library = ifcopenshell .api .run (
35- "root.create_entity" , self .file , ifc_class = "IfcProjectLibrary" , name = "BlenderBIM Demo Library"
33+ "root.create_entity" , self .file , ifc_class = "IfcProjectLibrary" , name = "Bonsai Demo Library"
3634 )
3735 ifcopenshell .api .run (
3836 "project.assign_declaration" , self .file , definitions = [self .library ], relating_context = self .library
@@ -66,7 +64,7 @@ def generate(self):
6664 {"body" : "Mobile Crane 50T" , "clearance" : "Mobile Crane 50T - Clearance" },
6765 )
6866
69- self .file .write ("blenderbim -site-library.ifc" )
67+ self .file .write ("bonsai -site-library.ifc" )
7068
7169 def create_type (self , ifc_class , name , representations ):
7270 element = ifcopenshell .api .run ("root.create_entity" , self .file , ifc_class = ifc_class , name = name )
0 commit comments