FEM: ccx constraint section print, add Gui command and icon

This commit is contained in:
UR-0
2020-06-24 07:39:26 +02:00
committed by Bernd Hahnebach
parent 128819d9ff
commit 346faafd6b
6 changed files with 443 additions and 0 deletions

View File

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