diff --git a/data/examples/CMakeLists.txt b/data/examples/CMakeLists.txt index 56af2d1555..44d9e6908e 100644 --- a/data/examples/CMakeLists.txt +++ b/data/examples/CMakeLists.txt @@ -8,6 +8,7 @@ SET(Examples_Files ArchDetail.FCStd FemCalculixCantilever2D.FCStd FemCalculixCantilever3D.FCStd + FemCalculixCantilever3D_newSolver.FCStd ) ADD_CUSTOM_TARGET(Example_data ALL diff --git a/data/examples/FemCalculixCantilever3D_newSolver.FCStd b/data/examples/FemCalculixCantilever3D_newSolver.FCStd new file mode 100644 index 0000000000..9badac8c55 Binary files /dev/null and b/data/examples/FemCalculixCantilever3D_newSolver.FCStd differ diff --git a/src/Mod/Start/CMakeLists.txt b/src/Mod/Start/CMakeLists.txt index ecbac81568..65d2681d3f 100644 --- a/src/Mod/Start/CMakeLists.txt +++ b/src/Mod/Start/CMakeLists.txt @@ -21,6 +21,7 @@ if(BUILD_GUI) LoadArchExample.py LoadFemExample2D.py LoadFemExample3D.py + LoadFemExample3DNewSolver.py Mesh.py PartDesign.py Ship.py diff --git a/src/Mod/Start/StartPage/LoadFemExample3DNewSolver.py b/src/Mod/Start/StartPage/LoadFemExample3DNewSolver.py new file mode 100644 index 0000000000..0eba592c3f --- /dev/null +++ b/src/Mod/Start/StartPage/LoadFemExample3DNewSolver.py @@ -0,0 +1,26 @@ +#*************************************************************************** +#* * +#* Copyright (c) 2012 * +#* Yorik van Havre * +#* * +#* This program is free software; you can redistribute it and/or modify * +#* it under the terms of the GNU Lesser General Public License (LGPL) * +#* as published by the Free Software Foundation; either version 2 of * +#* the License, or (at your option) any later version. * +#* for detail see the LICENCE text file. * +#* * +#* This program is distributed in the hope that it will be useful, * +#* but WITHOUT ANY WARRANTY; without even the implied warranty of * +#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +#* GNU Library General Public License for more details. * +#* * +#* You should have received a copy of the GNU Library General Public * +#* License along with this program; if not, write to the Free Software * +#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +#* USA * +#* * +#*************************************************************************** + +import FreeCAD,FreeCADGui +FreeCAD.open(FreeCAD.getResourceDir()+"examples/FemCalculixCantilever3D_newSolver.FCStd") +FreeCADGui.activeDocument().sendMsgToViews("ViewFit") diff --git a/src/Mod/Start/StartPage/StartPage.html b/src/Mod/Start/StartPage/StartPage.html index 36f20a7ad2..44eb1cd334 100644 --- a/src/Mod/Start/StartPage/StartPage.html +++ b/src/Mod/Start/StartPage/StartPage.html @@ -90,6 +90,7 @@
  •  text55
  •  text64
  •  text60
  • +
  •  text69
  • diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index 1eeef24c62..0df2a52a4c 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -38,7 +38,7 @@ from .TranslationTexts import (text01, text02, text03, text04, text05, text06, text49, text50, text51, text52, text53, text54, text55, text56, text57, text58, text59, text60, text61, text62, text63, text64, text65, text66, - text67, text68) + text67, text68, text69) try: import io as cStringIO @@ -274,6 +274,7 @@ def replace_html_text(html): html = html.replace("text61", text61) html = html.replace("text62", text62) html = html.replace("text64", text64) + html = html.replace("text69", text69) return html def replace_js_text(html): diff --git a/src/Mod/Start/StartPage/TranslationTexts.py b/src/Mod/Start/StartPage/TranslationTexts.py index cdb5272c7c..cd02989b94 100644 --- a/src/Mod/Start/StartPage/TranslationTexts.py +++ b/src/Mod/Start/StartPage/TranslationTexts.py @@ -123,3 +123,4 @@ text65 = translate("StartPage", "FreeCAD Standard File") text66 = translate("StartPage", "Author") text67 = translate("StartPage", "Company") text68 = translate("StartPage", "License") +text69 = translate("StartPage", "Load an FEM 3D new solver example analysis")