mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 07:09:22 +00:00
Fix failing aggregate duplication test after 17d6b8a
This commit is contained in:
@@ -1320,7 +1320,7 @@ class DuplicateMoveLinkedAggregate(bpy.types.Operator):
|
|||||||
)
|
)
|
||||||
pset = ifcopenshell.util.element.get_pset(new[0], "BBIM_Linked_Aggregate")
|
pset = ifcopenshell.util.element.get_pset(new[0], "BBIM_Linked_Aggregate")
|
||||||
new_obj = tool.Ifc.get_object(new[0])
|
new_obj = tool.Ifc.get_object(new[0])
|
||||||
new_obj.name = pset["Name"] + "_" + str(pset["Aggregate_Index"])
|
new_obj.name = f"{pset['Name']}_{pset['Aggregate_Index']:02d}"
|
||||||
|
|
||||||
def get_max_index(parts):
|
def get_max_index(parts):
|
||||||
psets = [
|
psets = [
|
||||||
|
|||||||
@@ -579,8 +579,9 @@ Scenario: Duplicate linked aggregate
|
|||||||
When I duplicate linked aggregate the selected objects
|
When I duplicate linked aggregate the selected objects
|
||||||
Then the object "IfcWall/Wall_01.001" exists
|
Then the object "IfcWall/Wall_01.001" exists
|
||||||
And the object "IfcWall/Wall_02.001" exists
|
And the object "IfcWall/Wall_02.001" exists
|
||||||
And the object "IfcElementAssembly/Assembly_01" exists
|
# msgbus updates don't happen in background mode, so obj is not renamed to "IfcElementAssembly/Assembly_01"
|
||||||
Then the object "IfcElementAssembly/Assembly" and "IfcElementAssembly/Assembly_01" belong to the same Linked Aggregate Group
|
And the object "Assembly_01" exists
|
||||||
|
Then the object "IfcElementAssembly/Assembly" and "Assembly_01" belong to the same Linked Aggregate Group
|
||||||
|
|
||||||
Scenario: Refresh linked aggregate
|
Scenario: Refresh linked aggregate
|
||||||
Given I load the IFC test file "/test/files/linked-aggregates.ifc"
|
Given I load the IFC test file "/test/files/linked-aggregates.ifc"
|
||||||
|
|||||||
Reference in New Issue
Block a user