diff --git a/data/examples/CMakeLists.txt b/data/examples/CMakeLists.txt index 845af0bc4..56af2d155 100644 --- a/data/examples/CMakeLists.txt +++ b/data/examples/CMakeLists.txt @@ -6,6 +6,7 @@ SET(Examples_Files PartDesignExample.FCStd RobotExample.FCStd ArchDetail.FCStd + FemCalculixCantilever2D.FCStd FemCalculixCantilever3D.FCStd ) diff --git a/data/examples/FemCalculixCantilever2D.FCStd b/data/examples/FemCalculixCantilever2D.FCStd new file mode 100644 index 000000000..b1b8bc477 Binary files /dev/null and b/data/examples/FemCalculixCantilever2D.FCStd differ diff --git a/data/examples/FemCalculixCantilever3D.FCStd b/data/examples/FemCalculixCantilever3D.FCStd index 60b626ae0..41ea82b7d 100644 Binary files a/data/examples/FemCalculixCantilever3D.FCStd and b/data/examples/FemCalculixCantilever3D.FCStd differ diff --git a/src/Mod/Start/CMakeLists.txt b/src/Mod/Start/CMakeLists.txt index 0bd49b7bc..2cf11990b 100644 --- a/src/Mod/Start/CMakeLists.txt +++ b/src/Mod/Start/CMakeLists.txt @@ -17,7 +17,8 @@ if(BUILD_GUI) LoadMRU1.py LoadMRU2.py LoadArchExample.py - LoadFemExample.py + LoadFemExample2D.py + LoadFemExample3D.py Mesh.py PartDesign.py Background.jpg diff --git a/src/Mod/Start/StartPage/LoadFemExample2D.py b/src/Mod/Start/StartPage/LoadFemExample2D.py new file mode 100644 index 000000000..e9f69a34c --- /dev/null +++ b/src/Mod/Start/StartPage/LoadFemExample2D.py @@ -0,0 +1,26 @@ +#*************************************************************************** +#* * +#* Copyright (c) 2016 * +#* Bernd Hahnebach * +#* * +#* 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/FemCalculixCantilever2D.FCStd") +FreeCADGui.activeDocument().sendMsgToViews("ViewFit") diff --git a/src/Mod/Start/StartPage/LoadFemExample.py b/src/Mod/Start/StartPage/LoadFemExample3D.py similarity index 100% rename from src/Mod/Start/StartPage/LoadFemExample.py rename to src/Mod/Start/StartPage/LoadFemExample3D.py diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index aad7e5eed..343e9eafc 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -106,10 +106,11 @@ text56 = translate("StartPage","http://www.freecadweb.org/wiki/index.php?title=T text57 = translate("StartPage","http://www.freecadweb.org/wiki/index.php?title=Power_users_hub") text58 = translate("StartPage","Your version of FreeCAD is up to date.") text59 = translate("StartPage","There is a new release of FreeCAD available.") -text60 = translate("StartPage","Load an FEM example analysis") +text60 = translate("StartPage","Load an FEM 3D example analysis") text61 = translate("StartPage","Obtain a development version") text62 = translate("StartPage","Development versions are made available by community members from time to time and usually contain the latest changes, but are more likely to contain bugs.") text63 = translate("StartPage","See all commits") +text64 = translate("StartPage","Load an FEM 2D example analysis") # get FreeCAD version @@ -434,7 +435,8 @@ def getExamples():
  •  """ + text12 + """
  •  """ + text13 + """
  •  """ + text55 + """
  • -
  •  """ + text60 + """
  • +
  •  """ + text64 + """
  • +
  •  """ + text60 + """
  • """ def getLinks():