diff --git a/src/Mod/Arch/ArchBuilding.py b/src/Mod/Arch/ArchBuilding.py index 4bb3ae86d8..911359e2e8 100644 --- a/src/Mod/Arch/ArchBuilding.py +++ b/src/Mod/Arch/ArchBuilding.py @@ -198,7 +198,7 @@ def makeBuilding(objectslist=None,baseobj=None,name="Building"): if not FreeCAD.ActiveDocument: FreeCAD.Console.PrintError("No active document. Aborting\n") return - obj = FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroupPython",name) + obj = FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroupPython","Building") _Building(obj) if FreeCAD.GuiUp: _ViewProviderBuilding(obj.ViewObject) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index 9030cf35ee..4dc4c90150 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -226,7 +226,7 @@ def makeComponent(baseobj=None,name="Component",delete=False): if not FreeCAD.ActiveDocument: FreeCAD.Console.PrintError("No active document. Aborting\n") return - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Component") obj.Label = translate("Arch",name) ArchComponent.Component(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchEquipment.py b/src/Mod/Arch/ArchEquipment.py index 5195eaf06b..75750dfdc5 100644 --- a/src/Mod/Arch/ArchEquipment.py +++ b/src/Mod/Arch/ArchEquipment.py @@ -58,7 +58,7 @@ def makeEquipment(baseobj=None,placement=None,name="Equipment"): if not FreeCAD.ActiveDocument: FreeCAD.Console.PrintError("No active document. Aborting\n") return - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Equipment") _Equipment(obj) if baseobj: if baseobj.isDerivedFrom("Mesh::Feature"): diff --git a/src/Mod/Arch/ArchFrame.py b/src/Mod/Arch/ArchFrame.py index b15d889c4d..fb3610cf0e 100644 --- a/src/Mod/Arch/ArchFrame.py +++ b/src/Mod/Arch/ArchFrame.py @@ -57,7 +57,7 @@ def makeFrame(baseobj,profile,name=translate("Arch","Frame")): if not FreeCAD.ActiveDocument: FreeCAD.Console.PrintError("No active document. Aborting\n") return - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Frame") obj.Label = translate("Arch",name) _Frame(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchPanel.py b/src/Mod/Arch/ArchPanel.py index 562e0d36a0..e5299c492d 100644 --- a/src/Mod/Arch/ArchPanel.py +++ b/src/Mod/Arch/ArchPanel.py @@ -73,7 +73,7 @@ def makePanel(baseobj=None,length=0,width=0,thickness=0,placement=None,name="Pan if not FreeCAD.ActiveDocument: FreeCAD.Console.PrintError("No active document. Aborting\n") return - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Panel") obj.Label = translate("Arch",name) _Panel(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchRebar.py b/src/Mod/Arch/ArchRebar.py index 769a32a150..2abc26ee67 100644 --- a/src/Mod/Arch/ArchRebar.py +++ b/src/Mod/Arch/ArchRebar.py @@ -59,7 +59,7 @@ def makeRebar(baseobj=None,sketch=None,diameter=None,amount=1,offset=None,name=" FreeCAD.Console.PrintError("No active document. Aborting\n") return p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch") - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Rebar") obj.Label = translate("Arch",name) _Rebar(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchSite.py b/src/Mod/Arch/ArchSite.py index 6854eae7f3..6a1517da84 100644 --- a/src/Mod/Arch/ArchSite.py +++ b/src/Mod/Arch/ArchSite.py @@ -60,7 +60,7 @@ def makeSite(objectslist=None,baseobj=None,name="Site"): FreeCAD.Console.PrintError("No active document. Aborting\n") return import Part - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Site") obj.Label = translate("Arch",name) _Site(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchSpace.py b/src/Mod/Arch/ArchSpace.py index 129d8e7122..4aac2ab801 100644 --- a/src/Mod/Arch/ArchSpace.py +++ b/src/Mod/Arch/ArchSpace.py @@ -179,7 +179,7 @@ def makeSpace(objects=None,baseobj=None,name="Space"): if not FreeCAD.ActiveDocument: FreeCAD.Console.PrintError("No active document. Aborting\n") return - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Space") obj.Label = translate("Arch",name) _Space(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchStairs.py b/src/Mod/Arch/ArchStairs.py index 8c4ea7503d..2e1acc33ab 100644 --- a/src/Mod/Arch/ArchStairs.py +++ b/src/Mod/Arch/ArchStairs.py @@ -56,7 +56,7 @@ def makeStairs(baseobj=None,length=None,width=None,height=None,steps=None,name=" FreeCAD.Console.PrintError("No active document. Aborting\n") return p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch") - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Stairs") obj.Label = translate("Arch",name) _Stairs(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index f2147ee5c3..d8d2c4b64c 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -72,7 +72,7 @@ def makeStructure(baseobj=None,length=None,width=None,height=None,name="Structur FreeCAD.Console.PrintError("No active document. Aborting\n") return p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch") - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Structure") obj.Label = translate("Arch",name) _Structure(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index ea40618fb4..9794dca921 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -62,7 +62,7 @@ def makeWall(baseobj=None,length=None,width=None,height=None,align="Center",face FreeCAD.Console.PrintError("No active document. Aborting\n") return p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch") - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Wall") obj.Label = translate("Arch",name) _Wall(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Arch/ArchWindow.py b/src/Mod/Arch/ArchWindow.py index 619c268f17..aa0132a4be 100644 --- a/src/Mod/Arch/ArchWindow.py +++ b/src/Mod/Arch/ArchWindow.py @@ -73,7 +73,7 @@ def makeWindow(baseobj=None,width=None,height=None,parts=None,name="Window"): obj = Draft.clone(baseobj) return obj p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch") - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Window") obj.Label = translate("Arch",name) _Window(obj) if FreeCAD.GuiUp: