Esempio n. 1
0
 def test_running_a_command_on_the_active_ifc_dataset(self):
     ifc = ifcopenshell.file()
     subject.set(ifc)
     wall = subject.run("root.create_entity", ifc_class="IfcWall")
     assert subject.get().by_type("IfcWall")[0] == wall
Esempio n. 2
0
 def test_getting_an_ifc_dataset_from_a_ifc_spf_filepath(self):
     assert subject.get() is None
     bpy.context.scene.BIMProperties.ifc_file = "test/files/basic.ifc"
     result = subject.get()
     assert isinstance(result, ifcopenshell.file)
Esempio n. 3
0
 def test_getting_the_active_ifc_dataset_regardless_of_ifc_path(self):
     bpy.context.scene.BIMProperties.ifc_file = "test/files/basic.ifc"
     ifc = ifcopenshell.file()
     subject.set(ifc)
     assert subject.get() == ifc
Esempio n. 4
0
 def test_setting_an_ifc_data(self):
     ifc = ifcopenshell.file()
     subject.set(ifc)
     assert subject.get() == ifc