mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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):
|
def add_qto(self, qto, obj):
|
||||||
new_qto = obj.BIMObjectProperties.qtos.add()
|
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:
|
if new_qto.name in schema.ifc.qtos:
|
||||||
for prop_name in schema.ifc.qtos[new_qto.name]['HasPropertyTemplates'].keys():
|
for prop_name in schema.ifc.qtos[new_qto.name]['HasPropertyTemplates'].keys():
|
||||||
prop = new_qto.properties.add()
|
prop = new_qto.properties.add()
|
||||||
|
|||||||
Reference in New Issue
Block a user