[BIM] Separate profile name from label number (#16304)

* [BIM] Separate profile name from label number

Fixes: #16286

* Make internal name generic
This commit is contained in:
Furgo
2024-09-09 17:45:34 +02:00
committed by GitHub
parent 1ad2bfde55
commit 17f74188d3

View File

@@ -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":