Tweak StartPage new file template descriptions and make arch template work with the BIM workbench

This commit is contained in:
qewer33
2023-08-13 21:42:19 +03:00
parent 5d3e023e4f
commit ee0cdc773d
2 changed files with 12 additions and 7 deletions

View File

@@ -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)

View File

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