mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 13:23:40 +00:00
WIP minor fixes to aggregate and spatial collection handling. See #1222.
This commit is contained in:
@@ -110,9 +110,14 @@ class AssignClass(bpy.types.Operator):
|
||||
|
||||
bpy.ops.bim.add_representation(obj=obj.name)
|
||||
|
||||
if ifcopenshell.util.schema.is_a(self.declaration, "IfcElementType"):
|
||||
if product.is_a("IfcElementType"):
|
||||
self.place_in_types_collection(obj)
|
||||
elif ifcopenshell.util.schema.is_a(self.declaration, "IfcSpatialElement") or self.ifc_class == "IfcProject":
|
||||
elif (
|
||||
product.is_a("IfcSpatialElement")
|
||||
or product.is_a("IfcSpatialStructureElement")
|
||||
or product.is_a("IfcProject")
|
||||
or product.is_a("IfcContext")
|
||||
):
|
||||
self.place_in_spatial_collection(obj)
|
||||
else:
|
||||
self.assign_potential_spatial_container(obj)
|
||||
|
||||
Reference in New Issue
Block a user