mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 13:28:19 +00:00
Simplify UI by making GlobalId generation more automated and show in context
This commit is contained in:
@@ -1122,6 +1122,8 @@ class AddAttribute(bpy.types.Operator):
|
||||
if bpy.context.active_object.BIMObjectProperties.applicable_attributes:
|
||||
attribute = bpy.context.active_object.BIMObjectProperties.attributes.add()
|
||||
attribute.name = bpy.context.active_object.BIMObjectProperties.applicable_attributes
|
||||
if attribute.name == 'GlobalId':
|
||||
attribute.string_value = ifcopenshell.guid.new()
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user