diff --git a/src/ifcp6/ifcp6/p62ifc.py b/src/ifcp6/ifcp6/p62ifc.py index 1a79f83f2e..5bccaa37ea 100644 --- a/src/ifcp6/ifcp6/p62ifc.py +++ b/src/ifcp6/ifcp6/p62ifc.py @@ -302,11 +302,14 @@ class P62Ifc: work_schedule=None if wbs["ParentObjectId"] else work_schedule, parent_task=self.wbs[wbs["ParentObjectId"]]["ifc"] if wbs["ParentObjectId"] else None, ) + identification = wbs["Code"] + if wbs["ParentObjectId"]: + identification = self.wbs[wbs["ParentObjectId"]]["ifc"].Identification + "." + wbs["Code"] ifcopenshell.api.run( "sequence.edit_task", self.file, task=wbs["ifc"], - attributes={"Name": wbs["Name"], "Identification": wbs["Code"]}, + attributes={"Name": wbs["Name"], "Identification": identification}, ) for activity_id in wbs["activities"]: self.create_task_from_activity(self.activities[activity_id], wbs, None)