deprecate Material.BIMMaterialProperties #4843

As it now stored just 1 property and it's now moved to the BIMStyleProperties.
This commit is contained in:
Andrej730
2024-06-26 11:30:04 +05:00
parent 78e81542d9
commit 2f81cab5f1
17 changed files with 43 additions and 51 deletions
+2 -2
View File
@@ -576,14 +576,14 @@ def the_material_name_is_not_an_ifc_material(name):
@then(parsers.parse('the material "{name}" is an IFC style'))
def the_material_name_is_an_ifc_style(name):
obj = the_material_name_exists(name)
ifc_definition_id = obj.BIMMaterialProperties.ifc_style_id
ifc_definition_id = obj.BIMStyleProperties.ifc_definition_id
assert ifc_definition_id != 0, f"The material {obj} has a style ID of {ifc_definition_id}"
@then(parsers.parse('the material "{name}" is not an IFC style'))
def the_material_name_is_not_an_ifc_style(name):
obj = the_material_name_exists(name)
ifc_definition_id = obj.BIMMaterialProperties.ifc_style_id
ifc_definition_id = obj.BIMStyleProperties.ifc_definition_id
assert ifc_definition_id == 0, f"The material {obj} has a style ID of {ifc_definition_id}"