From 17f74188d3b798704ef63203ee28a0fa1d25d508 Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Mon, 9 Sep 2024 17:45:34 +0200 Subject: [PATCH] [BIM] Separate profile name from label number (#16304) * [BIM] Separate profile name from label number Fixes: #16286 * Make internal name generic --- src/Mod/BIM/Arch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/Arch.py b/src/Mod/BIM/Arch.py index 4a630eee97..6a0015bd41 100644 --- a/src/Mod/BIM/Arch.py +++ b/src/Mod/BIM/Arch.py @@ -477,8 +477,8 @@ def makeProfile(profile=[0,'REC','REC100x100','R',100,100]): if not FreeCAD.ActiveDocument: FreeCAD.Console.PrintError("No active document. Aborting\n") return - obj = FreeCAD.ActiveDocument.addObject("Part::Part2DObjectPython",profile[2]) - obj.Label = profile[2] + obj = FreeCAD.ActiveDocument.addObject("Part::Part2DObjectPython", "Profile") + obj.Label = profile[2] + "_" if profile[3]=="C": ArchProfile._ProfileC(obj, profile) elif profile[3]=="H":