diff --git a/src/Mod/Fem/Gui/CMakeLists.txt b/src/Mod/Fem/Gui/CMakeLists.txt
index f03da1ec3b..0c9dc0b7ca 100755
--- a/src/Mod/Fem/Gui/CMakeLists.txt
+++ b/src/Mod/Fem/Gui/CMakeLists.txt
@@ -405,6 +405,7 @@ INSTALL(FILES ${FemGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Fem/Re
# see https://forum.freecadweb.org/viewtopic.php?f=10&t=25833
SET(FemGuiPythonUI_SRCS
Resources/ui/ConstraintTie.ui
+ Resources/ui/ConstraintSectionPrint.ui
Resources/ui/ElectrostaticPotential.ui
Resources/ui/ElementFluid1D.ui
Resources/ui/ElementGeometry1D.ui
diff --git a/src/Mod/Fem/Gui/Resources/Fem.qrc b/src/Mod/Fem/Gui/Resources/Fem.qrc
index 986e630862..b49faaca45 100755
--- a/src/Mod/Fem/Gui/Resources/Fem.qrc
+++ b/src/Mod/Fem/Gui/Resources/Fem.qrc
@@ -24,6 +24,7 @@
icons/FEM_ConstraintPlaneRotation.svg
icons/FEM_ConstraintPressure.svg
icons/FEM_ConstraintPulley.svg
+ icons/FEM_ConstraintSectionPrint.svg
icons/FEM_ConstraintSelfWeight.svg
icons/FEM_ConstraintTemperature.svg
icons/FEM_ConstraintTie.svg
diff --git a/src/Mod/Fem/Gui/Resources/icons/FEM_ConstraintSectionPrint.svg b/src/Mod/Fem/Gui/Resources/icons/FEM_ConstraintSectionPrint.svg
new file mode 100644
index 0000000000..6db6ad112c
--- /dev/null
+++ b/src/Mod/Fem/Gui/Resources/icons/FEM_ConstraintSectionPrint.svg
@@ -0,0 +1,390 @@
+
+
diff --git a/src/Mod/Fem/Gui/Resources/ui/ConstraintSectionPrint.ui b/src/Mod/Fem/Gui/Resources/ui/ConstraintSectionPrint.ui
new file mode 100644
index 0000000000..bdcc1d2c55
--- /dev/null
+++ b/src/Mod/Fem/Gui/Resources/ui/ConstraintSectionPrint.ui
@@ -0,0 +1,34 @@
+
+
+ Form
+
+
+
+ 0
+ 0
+ 350
+ 500
+
+
+
+ SectionPrint parameter
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+
diff --git a/src/Mod/Fem/Gui/Workbench.cpp b/src/Mod/Fem/Gui/Workbench.cpp
index c5fd9c91c8..d3ddee9fb1 100755
--- a/src/Mod/Fem/Gui/Workbench.cpp
+++ b/src/Mod/Fem/Gui/Workbench.cpp
@@ -127,6 +127,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
geom->setCommand("Geometrical Constraints");
*geom
<< "FEM_ConstraintPlaneRotation"
+ << "FEM_ConstraintSectionPrint"
<< "FEM_ConstraintTransform";
Gui::ToolBarItem* mech = new Gui::ToolBarItem(root);
@@ -251,6 +252,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
geom->setCommand("&Geometrical Constraints");
*geom
<< "FEM_ConstraintPlaneRotation"
+ << "FEM_ConstraintSectionPrint"
<< "FEM_ConstraintTransform";
Gui::MenuItem* mech = new Gui::MenuItem;
diff --git a/src/Mod/Fem/femcommands/commands.py b/src/Mod/Fem/femcommands/commands.py
index 0c88c89b62..a4cdd0ca41 100644
--- a/src/Mod/Fem/femcommands/commands.py
+++ b/src/Mod/Fem/femcommands/commands.py
@@ -178,6 +178,17 @@ class _ConstraintInitialFlowVelocity(CommandManager):
self.do_activated = "add_obj_on_gui_set_edit"
+class _ConstraintSectionPrint(CommandManager):
+ "The FEM_ConstraintSectionPrint command definition"
+
+ def __init__(self):
+ super(_ConstraintSectionPrint, self).__init__()
+ self.menuetext = "Constraint sectionprint"
+ self.tooltip = "Creates a FEM constraint sectionprint"
+ self.is_active = "with_analysis"
+ self.do_activated = "add_obj_on_gui_set_edit"
+
+
class _ConstraintSelfWeight(CommandManager):
"The FEM_ConstraintSelfWeight command definition"
@@ -792,6 +803,10 @@ FreeCADGui.addCommand(
"FEM_ConstraintInitialFlowVelocity",
_ConstraintInitialFlowVelocity()
)
+FreeCADGui.addCommand(
+ "FEM_ConstraintSectionPrint",
+ _ConstraintSectionPrint()
+)
FreeCADGui.addCommand(
"FEM_ConstraintSelfWeight",
_ConstraintSelfWeight()