mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 10:59:17 +00:00
Minor fix
This commit is contained in:
committed by
Dion Moult
parent
e20d4c93b7
commit
4e8a962f60
@@ -40,11 +40,11 @@ def calculate_all_qtos(qto, selected_objects):
|
|||||||
|
|
||||||
def guess_all_qtos(qto, selected_objects):
|
def guess_all_qtos(qto, selected_objects):
|
||||||
for obj in selected_objects:
|
for obj in selected_objects:
|
||||||
if not qto.get_pset_qto_object_ifc_info(obj):
|
if not qto.get_qto_entity(obj):
|
||||||
print(f"There is no pset qto instance associated to object {obj.name}")
|
print(f"There is no pset qto instance associated to object {obj.name}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
applicable_quantity_names = qto.get_base_quantities_name(obj)
|
applicable_quantity_names = qto.get_applicable_quantity_names(obj)
|
||||||
|
|
||||||
calculated_quantities = qto.get_calculated_quantities(obj, applicable_quantity_names)
|
calculated_quantities = qto.get_calculated_quantities(obj, applicable_quantity_names)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user