mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Fix #1889. Allow explicitly overriding data types when editing psets.
This commit is contained in:
@@ -38,6 +38,8 @@ class Usecase:
|
||||
value = self.settings["properties"][prop.Name]
|
||||
if value is None:
|
||||
prop.NominalValue = None
|
||||
elif isinstance(value, ifcopenshell.entity_instance):
|
||||
prop.NominalValue = value
|
||||
else:
|
||||
primary_measure_type = self.get_primary_measure_type(prop.Name, old_value=prop.NominalValue, new_value=value)
|
||||
prop.NominalValue = self.file.create_entity(primary_measure_type, value)
|
||||
|
||||
Reference in New Issue
Block a user