mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Accommodate blank qto names. Probably invalid IFC though.
This commit is contained in:
@@ -1225,7 +1225,7 @@ class IfcImporter():
|
||||
|
||||
def add_qto(self, qto, obj):
|
||||
new_qto = obj.BIMObjectProperties.qtos.add()
|
||||
new_qto.name = qto.Name
|
||||
new_qto.name = str(qto.Name)
|
||||
if new_qto.name in schema.ifc.qtos:
|
||||
for prop_name in schema.ifc.qtos[new_qto.name]['HasPropertyTemplates'].keys():
|
||||
prop = new_qto.properties.add()
|
||||
|
||||
Reference in New Issue
Block a user