mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 05:17:58 +00:00
Update src/blenderbim/blenderbim/bim/module/model/prop.py
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com>
This commit is contained in:
@@ -94,7 +94,8 @@ def update_relating_array_from_object(self, context):
|
|||||||
if not element:
|
if not element:
|
||||||
return
|
return
|
||||||
# If a child is selected, the following assigns the parent to the relating_array_object
|
# If a child is selected, the following assigns the parent to the relating_array_object
|
||||||
parent_globalid = element.IsDefinedBy[0].RelatingPropertyDefinition.HasProperties[0].NominalValue.wrappedValue
|
pset = ifcopenshell.util.element.get_pset(element, "BBIM_Array")
|
||||||
|
parent_globalid = pset["Parent"]
|
||||||
parent_element = tool.Ifc.get().by_guid(parent_globalid)
|
parent_element = tool.Ifc.get().by_guid(parent_globalid)
|
||||||
parent_of_relating_array_object = tool.Ifc.get_object(parent_element)
|
parent_of_relating_array_object = tool.Ifc.get_object(parent_element)
|
||||||
#The following error handling is used to break out when an array parent is selected
|
#The following error handling is used to break out when an array parent is selected
|
||||||
|
|||||||
Reference in New Issue
Block a user