mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Be more accommodating when fetching properties to allow for incomplete scripts.
This commit is contained in:
@@ -41,7 +41,7 @@ def get_quantities(quantities):
|
||||
|
||||
def get_properties(properties):
|
||||
results = {}
|
||||
for prop in properties:
|
||||
for prop in properties or []:
|
||||
if prop.is_a("IfcPropertySingleValue"):
|
||||
results[prop.Name] = prop.NominalValue.wrappedValue if prop.NominalValue else None
|
||||
elif prop.is_a("IfcComplexProperty"):
|
||||
|
||||
Reference in New Issue
Block a user