From ee0cdc773d1fb59c6d7bfbf23c699e321f3c2fd2 Mon Sep 17 00:00:00 2001 From: qewer33 Date: Sun, 13 Aug 2023 21:42:19 +0300 Subject: [PATCH] Tweak StartPage new file template descriptions and make arch template work with the BIM workbench --- src/Mod/Start/StartPage/LoadNew.py | 7 ++++++- src/Mod/Start/StartPage/TranslationTexts.py | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/Mod/Start/StartPage/LoadNew.py b/src/Mod/Start/StartPage/LoadNew.py index 83b86c4542..0caf12e5b2 100644 --- a/src/Mod/Start/StartPage/LoadNew.py +++ b/src/Mod/Start/StartPage/LoadNew.py @@ -53,5 +53,10 @@ match template_name: StartPage.postStart(False) case "architecture": FreeCADGui.runCommand('Std_New') - FreeCADGui.activateWorkbench("ArchWorkbench") + try: + import BimCommands + except Exception: + FreeCADGui.activateWorkbench("ArchWorkbench") + else: + FreeCADGui.activateWorkbench("BIMWorkbench") StartPage.postStart(False) diff --git a/src/Mod/Start/StartPage/TranslationTexts.py b/src/Mod/Start/StartPage/TranslationTexts.py index 493e4ac774..706443fc98 100644 --- a/src/Mod/Start/StartPage/TranslationTexts.py +++ b/src/Mod/Start/StartPage/TranslationTexts.py @@ -42,15 +42,15 @@ T_NEWFILE = translate("StartPage", "New file") T_TEMPLATE_EMPTYFILE_NAME = translate("StartPage", "Empty File") T_TEMPLATE_EMPTYFILE_DESC = translate("StartPage", "Create an empty FreeCAD file") T_TEMPLATE_IMPORTFILE_NAME = translate("StartPage", "Import File") -T_TEMPLATE_IMPORTFILE_DESC = translate("StartPage", "Work on an existing CAD or 3D model file") +T_TEMPLATE_IMPORTFILE_DESC = translate("StartPage", "Work on an existing CAD file or 3D model") T_TEMPLATE_PARAMETRICPART_NAME = translate("StartPage", "Parametric Part") -T_TEMPLATE_PARAMETRICPART_DESC = translate("StartPage", "Template for a part with the Part Design workbench") +T_TEMPLATE_PARAMETRICPART_DESC = translate("StartPage", "Create a part with the Part Design workbench") T_TEMPLATE_CSGPART_NAME = translate("StartPage", "CSG Part") -T_TEMPLATE_CSGPART_DESC = translate("StartPage", "Template for a part with the Part workbench") +T_TEMPLATE_CSGPART_DESC = translate("StartPage", "Create a part with the Part workbench") T_TEMPLATE_2DDRAFT_NAME = translate("StartPage", "2D Draft") -T_TEMPLATE_2DDRAFT_DESC = translate("StartPage", "Template for a 2D draft with the Draft workbench") -T_TEMPLATE_ARCHITECTURE_NAME = translate("StartPage", "Architecture") -T_TEMPLATE_ARCHITECTURE_DESC = translate("StartPage", "Template for a an architecture project") +T_TEMPLATE_2DDRAFT_DESC = translate("StartPage", "Create a 2D draft with the Draft workbench") +T_TEMPLATE_ARCHITECTURE_NAME = translate("StartPage", "BIM/Architecture") +T_TEMPLATE_ARCHITECTURE_DESC = translate("StartPage", "Create an architecture project") T_RECENTFILES = translate("StartPage", "Recent files") T_TIP = translate("StartPage", "Tip") T_ADJUSTRECENT = translate("StartPage", "Adjust the number of recent files to be shown here in menu Edit -> Preferences -> General -> Size of recent file list")