FEM: visible command names, use FEM instead of Fem

This commit is contained in:
Bernd Hahnebach 2017-02-28 11:53:00 +01:00 committed by wmayer
parent 5a6ccfbe37
commit 5f5797ecb0
23 changed files with 220 additions and 220 deletions

View File

@ -103,13 +103,13 @@ std::string gethideMeshShowPartStr(std::string showConstr="")
DEF_STD_CMD_A(CmdFemCreateAnalysis);
CmdFemCreateAnalysis::CmdFemCreateAnalysis()
: Command("Fem_CreateAnalysis")
: Command("FEM_CreateAnalysis")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Create a FEM analysis");
sToolTipText = QT_TR_NOOP("Create a FEM analysis");
sWhatsThis = "Fem_CreateAnalysis";
sWhatsThis = "FEM_CreateAnalysis";
sStatusTip = sToolTipText;
sPixmap = "fem-analysis";
}
@ -165,13 +165,13 @@ bool CmdFemCreateAnalysis::isActive(void)
DEF_STD_CMD_A(CmdFemAddPart);
CmdFemAddPart::CmdFemAddPart()
: Command("Fem_FemAddPart")
: Command("FEM_FemAddPart")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Add a part to the Analysis");
sToolTipText = QT_TR_NOOP("Add a part to the Analysis");
sWhatsThis = "Fem_FemAddPart";
sWhatsThis = "FEM_FemAddPart";
sStatusTip = sToolTipText;
sPixmap = "fem-add-fem-mesh";
}
@ -228,13 +228,13 @@ bool CmdFemAddPart::isActive(void)
DEF_STD_CMD_A(CmdFemCreateSolver);
CmdFemCreateSolver::CmdFemCreateSolver()
: Command("Fem_CreateSolver")
: Command("FEM_CreateSolver")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Add a solver to the Analysis");
sToolTipText = QT_TR_NOOP("Add a solver to the Analysis");
sWhatsThis = "Fem_CreateSolver";
sWhatsThis = "FEM_CreateSolver";
sStatusTip = sToolTipText;
sPixmap = "fem-solver";
}
@ -273,13 +273,13 @@ bool CmdFemCreateSolver::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintBearing);
CmdFemConstraintBearing::CmdFemConstraintBearing()
: Command("Fem_ConstraintBearing")
: Command("FEM_ConstraintBearing")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint bearing");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a bearing");
sWhatsThis = "Fem_ConstraintBearing";
sWhatsThis = "FEM_ConstraintBearing";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-bearing";
}
@ -314,13 +314,13 @@ bool CmdFemConstraintBearing::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintFixed);
CmdFemConstraintFixed::CmdFemConstraintFixed()
: Command("Fem_ConstraintFixed")
: Command("FEM_ConstraintFixed")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint fixed");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a fixed geometric entity");
sWhatsThis = "Fem_ConstraintFixed";
sWhatsThis = "FEM_ConstraintFixed";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-fixed";
}
@ -356,13 +356,13 @@ bool CmdFemConstraintFixed::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintPlaneRotation);
CmdFemConstraintPlaneRotation::CmdFemConstraintPlaneRotation()
: Command("Fem_ConstraintPlaneRotation")
: Command("FEM_ConstraintPlaneRotation")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint plane rotation");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for plane rotation face");
sWhatsThis = "Fem_ConstraintPlaneRotation";
sWhatsThis = "FEM_ConstraintPlaneRotation";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-planerotation";
}
@ -397,13 +397,13 @@ bool CmdFemConstraintPlaneRotation::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintContact);
CmdFemConstraintContact::CmdFemConstraintContact()
: Command("Fem_ConstraintContact")
: Command("FEM_ConstraintContact")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint contact ");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for contact between faces");
sWhatsThis = "Fem_ConstraintContact";
sWhatsThis = "FEM_ConstraintContact";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-contact";
}
@ -441,13 +441,13 @@ bool CmdFemConstraintContact::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintTransform);
CmdFemConstraintTransform::CmdFemConstraintTransform()
: Command("Fem_ConstraintTransform")
: Command("FEM_ConstraintTransform")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Create FEM transform constraint");
sToolTipText = QT_TR_NOOP("Create FEM constraint for transforming a face");
sWhatsThis = "Fem_ConstraintTransform";
sWhatsThis = "FEM_ConstraintTransform";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-transform";
}
@ -485,13 +485,13 @@ bool CmdFemConstraintTransform::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintHeatflux);
CmdFemConstraintHeatflux::CmdFemConstraintHeatflux()
: Command("Fem_ConstraintHeatflux")
: Command("FEM_ConstraintHeatflux")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint heatflux ");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a heatflux acting on a face");
sWhatsThis = "Fem_ConstraintHeatflux";
sWhatsThis = "FEM_ConstraintHeatflux";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-heatflux";
}
@ -529,13 +529,13 @@ bool CmdFemConstraintHeatflux::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintForce);
CmdFemConstraintForce::CmdFemConstraintForce()
: Command("Fem_ConstraintForce")
: Command("FEM_ConstraintForce")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint force");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a force acting on a geometric entity");
sWhatsThis = "Fem_ConstraintForce";
sWhatsThis = "FEM_ConstraintForce";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-force";
}
@ -575,13 +575,13 @@ bool CmdFemConstraintForce::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintFluidBoundary);
CmdFemConstraintFluidBoundary::CmdFemConstraintFluidBoundary()
: Command("Fem_ConstraintFluidBoundary")
: Command("FEM_ConstraintFluidBoundary")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Create fluid boundary condition");
sToolTipText = QT_TR_NOOP("Create fluid boundary condition on face entity for Computional Fluid Dynamics");
sWhatsThis = "Fem_ConstraintFluidBoundary";
sWhatsThis = "FEM_ConstraintFluidBoundary";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-fluid-boundary";
}
@ -619,13 +619,13 @@ bool CmdFemConstraintFluidBoundary::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintPressure);
CmdFemConstraintPressure::CmdFemConstraintPressure()
: Command("Fem_ConstraintPressure")
: Command("FEM_ConstraintPressure")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint pressure");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a pressure acting on a face");
sWhatsThis = "Fem_ConstraintPressure";
sWhatsThis = "FEM_ConstraintPressure";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-pressure";
}
@ -664,13 +664,13 @@ bool CmdFemConstraintPressure::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintGear);
CmdFemConstraintGear::CmdFemConstraintGear()
: Command("Fem_ConstraintGear")
: Command("FEM_ConstraintGear")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint gear");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a gear");
sWhatsThis = "Fem_ConstraintGear";
sWhatsThis = "FEM_ConstraintGear";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-gear";
}
@ -705,13 +705,13 @@ bool CmdFemConstraintGear::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintPulley);
CmdFemConstraintPulley::CmdFemConstraintPulley()
: Command("Fem_ConstraintPulley")
: Command("FEM_ConstraintPulley")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint pulley");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a pulley");
sWhatsThis = "Fem_ConstraintPulley";
sWhatsThis = "FEM_ConstraintPulley";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-pulley";
}
@ -750,13 +750,13 @@ bool CmdFemConstraintPulley::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintDisplacement);
CmdFemConstraintDisplacement::CmdFemConstraintDisplacement()
: Command("Fem_ConstraintDisplacement")
: Command("FEM_ConstraintDisplacement")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint displacement");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a displacement acting on a geometric entity");
sWhatsThis = "Fem_ConstraintDisplacement";
sWhatsThis = "FEM_ConstraintDisplacement";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-displacement";
}
@ -793,13 +793,13 @@ bool CmdFemConstraintDisplacement::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintTemperature);
CmdFemConstraintTemperature::CmdFemConstraintTemperature()
: Command("Fem_ConstraintTemperature")
: Command("FEM_ConstraintTemperature")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint temperature ");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for a temperature/concentrated heat flux acting on a face");
sWhatsThis = "Fem_ConstraintTemperature";
sWhatsThis = "FEM_ConstraintTemperature";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-temperature";
}
@ -836,13 +836,13 @@ bool CmdFemConstraintTemperature::isActive(void)
DEF_STD_CMD_A(CmdFemConstraintInitialTemperature);
CmdFemConstraintInitialTemperature::CmdFemConstraintInitialTemperature()
: Command("Fem_ConstraintInitialTemperature")
: Command("FEM_ConstraintInitialTemperature")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Constraint initial temperature");
sToolTipText = QT_TR_NOOP("Creates a FEM constraint for initial temperature acting on a body");
sWhatsThis = "Fem_ConstraintInitialTemperature";
sWhatsThis = "FEM_ConstraintInitialTemperature";
sStatusTip = sToolTipText;
sPixmap = "fem-constraint-InitialTemperature";
}
@ -967,7 +967,7 @@ void DefineNodesCallback(void * ud, SoEventCallback * n)
CmdFemDefineNodesSet::CmdFemDefineNodesSet()
: Command("Fem_DefineNodesSet")
: Command("FEM_DefineNodesSet")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
@ -1024,13 +1024,13 @@ bool CmdFemDefineNodesSet::isActive(void)
DEF_STD_CMD_A(CmdFemCreateNodesSet);
CmdFemCreateNodesSet::CmdFemCreateNodesSet()
: Command("Fem_CreateNodesSet")
: Command("FEM_CreateNodesSet")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Nodes set");
sToolTipText = QT_TR_NOOP("Creates a FEM mesh nodes set");
sWhatsThis = "Fem_CreateNodesSet";
sWhatsThis = "FEM_CreateNodesSet";
sStatusTip = sToolTipText;
sPixmap = "fem-femmesh-create-node-by-poly";
}
@ -1159,13 +1159,13 @@ plt.show()\n";
DEF_STD_CMD_A(CmdFemPostCreateClipFilter);
CmdFemPostCreateClipFilter::CmdFemPostCreateClipFilter()
: Command("Fem_PostCreateClipFilter")
: Command("FEM_PostCreateClipFilter")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Define/create a clip filter which uses functions to define the cliped region");
sToolTipText = QT_TR_NOOP("Define/create a clip filter which uses functions to define the cliped region");
sWhatsThis = "Fem_PostCreateClipFilter";
sWhatsThis = "FEM_PostCreateClipFilter";
sStatusTip = sToolTipText;
sPixmap = "fem-clip";
}
@ -1183,13 +1183,13 @@ bool CmdFemPostCreateClipFilter::isActive(void)
DEF_STD_CMD_A(CmdFemPostCreateDataAlongLineFilter);
CmdFemPostCreateDataAlongLineFilter::CmdFemPostCreateDataAlongLineFilter()
: Command("Fem_PostCreateDataAlongLineFilter")
: Command("FEM_PostCreateDataAlongLineFilter")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Define/create a clip filter which clips a field along a line");
sToolTipText = QT_TR_NOOP("Define/create a clip filter which clips a field along a line");
sWhatsThis = "Fem_PostCreateDataAlongLineFilter";
sWhatsThis = "FEM_PostCreateDataAlongLineFilter";
sStatusTip = sToolTipText;
sPixmap = "fem-DataAlongLine";
}
@ -1207,13 +1207,13 @@ bool CmdFemPostCreateDataAlongLineFilter::isActive(void)
DEF_STD_CMD_A(CmdFemPostCreateLinearizedStressesFilter);
CmdFemPostCreateLinearizedStressesFilter::CmdFemPostCreateLinearizedStressesFilter()
: Command("Fem_PostCreateLinearizedStressesFilter")
: Command("FEM_PostCreateLinearizedStressesFilter")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Create stress linearization plots");
sToolTipText = QT_TR_NOOP("Create stress linearization plots");
sWhatsThis = "Fem_PostCreateLinearizedStressesFilter";
sWhatsThis = "FEM_PostCreateLinearizedStressesFilter";
sStatusTip = sToolTipText;
sPixmap = "fem-linearizedstresses";
}
@ -1252,13 +1252,13 @@ bool CmdFemPostCreateLinearizedStressesFilter::isActive(void)
DEF_STD_CMD_A(CmdFemPostCreateScalarClipFilter);
CmdFemPostCreateScalarClipFilter::CmdFemPostCreateScalarClipFilter()
: Command("Fem_PostCreateScalarClipFilter")
: Command("FEM_PostCreateScalarClipFilter")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Define/create a clip filter which clips a field with a scalar value");
sToolTipText = QT_TR_NOOP("Define/create a clip filter which clips a field with a scalar value");
sWhatsThis = "Fem_PostCreateScalarClipFilter";
sWhatsThis = "FEM_PostCreateScalarClipFilter";
sStatusTip = sToolTipText;
sPixmap = "fem-clip-scalar";
}
@ -1278,13 +1278,13 @@ bool CmdFemPostCreateScalarClipFilter::isActive(void)
DEF_STD_CMD_A(CmdFemPostWarpVectorFilter);
CmdFemPostWarpVectorFilter::CmdFemPostWarpVectorFilter()
: Command("Fem_PostCreateWarpVectorFilter")
: Command("FEM_PostCreateWarpVectorFilter")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Warp the geometry along a vector field by a certain factor");
sToolTipText = QT_TR_NOOP("Warp the geometry along a vector field by a certain factor");
sWhatsThis = "Fem_PostCreateWarpVectorFilter";
sWhatsThis = "FEM_PostCreateWarpVectorFilter";
sStatusTip = sToolTipText;
sPixmap = "fem-warp";
}
@ -1302,13 +1302,13 @@ bool CmdFemPostWarpVectorFilter::isActive(void)
DEF_STD_CMD_A(CmdFemPostCutFilter);
CmdFemPostCutFilter::CmdFemPostCutFilter()
: Command("Fem_PostCreateCutFilter")
: Command("FEM_PostCreateCutFilter")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Cut the data along an implicit function");
sToolTipText = QT_TR_NOOP("Cut the data along an implicit function");
sWhatsThis = "Fem_PostCreateCutFilter";
sWhatsThis = "FEM_PostCreateCutFilter";
sStatusTip = sToolTipText;
sPixmap = "fem-cut";
}
@ -1329,13 +1329,13 @@ bool CmdFemPostCutFilter::isActive(void)
DEF_STD_CMD_ACL(CmdFemPostFunctions);
CmdFemPostFunctions::CmdFemPostFunctions()
: Command("Fem_PostCreateFunctions")
: Command("FEM_PostCreateFunctions")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Functions for use in postprocessing filter...");
sToolTipText = QT_TR_NOOP("Functions for use in postprocessing filter...");
sWhatsThis = "Fem_PostCreateFunctions";
sWhatsThis = "FEM_PostCreateFunctions";
sStatusTip = sToolTipText;
eType = eType|ForEdit;
}
@ -1446,12 +1446,12 @@ void CmdFemPostFunctions::languageChange()
QAction* cmd = a[0];
cmd->setText(QApplication::translate("CmdFemPostFunctions","Plane"));
cmd->setToolTip(QApplication::translate("Fem_PostCreateFunctions","Create a plane function, defined by its origin and normal"));
cmd->setToolTip(QApplication::translate("FEM_PostCreateFunctions","Create a plane function, defined by its origin and normal"));
cmd->setStatusTip(cmd->toolTip());
cmd = a[1];
cmd->setText(QApplication::translate("CmdFemPostFunctions","Sphere"));
cmd->setToolTip(QApplication::translate("Fem_PostCreateFunctions","Create a phere function, defined by its center and radius"));
cmd->setToolTip(QApplication::translate("FEM_PostCreateFunctions","Create a phere function, defined by its center and radius"));
cmd->setStatusTip(cmd->toolTip());
}
@ -1468,13 +1468,13 @@ bool CmdFemPostFunctions::isActive(void)
DEF_STD_CMD_AC(CmdFemPostApllyChanges);
CmdFemPostApllyChanges::CmdFemPostApllyChanges()
: Command("Fem_PostApplyChanges")
: Command("FEM_PostApplyChanges")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Apply changes to parameters directly and not on recompute only...");
sToolTipText = QT_TR_NOOP("Apply changes to parameters directly and not on recompute only...");
sWhatsThis = "Fem_PostApplyChanges";
sWhatsThis = "FEM_PostApplyChanges";
sStatusTip = sToolTipText;
sPixmap = "view-refresh";
eType = eType|ForEdit;
@ -1512,13 +1512,13 @@ Gui::Action * CmdFemPostApllyChanges::createAction(void)
DEF_STD_CMD_A(CmdFemPostPipelineFromResult);
CmdFemPostPipelineFromResult::CmdFemPostPipelineFromResult()
: Command("Fem_PostPipelineFromResult")
: Command("FEM_PostPipelineFromResult")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Creates a post processing pipeline from a result object");
sToolTipText = QT_TR_NOOP("Creates a post processing pipeline from a result object");
sWhatsThis = "Fem_PostPipelineFromResult";
sWhatsThis = "FEM_PostPipelineFromResult";
sStatusTip = sToolTipText;
sPixmap = "fem-data";
}

View File

@ -54,8 +54,8 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
{
StdWorkbench::setupContextMenu( recipient, item );
*item << "Separator"
<< "Fem_ClearMesh"
<< "Fem_PrintMeshInfo";
<< "FEM_ClearMesh"
<< "FEM_PrintMeshInfo";
}
Gui::ToolBarItem* Workbench::setupToolBars() const
@ -63,63 +63,63 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
Gui::ToolBarItem* root = StdWorkbench::setupToolBars();
Gui::ToolBarItem* fem = new Gui::ToolBarItem(root);
fem->setCommand("FEM");
*fem << "Fem_FemMesh2Mesh"
<< "Fem_Analysis"
<< "Fem_SolverCalculix"
// << "Fem_SolverZ88"
*fem << "FEM_FemMesh2Mesh"
<< "FEM_Analysis"
<< "FEM_SolverCalculix"
// << "FEM_SolverZ88"
<< "Separator"
<< "Fem_MeshNetgenFromShape"
<< "Fem_MeshGmshFromShape"
<< "Fem_MeshRegion"
<< "Fem_MeshGroup"
//<< "Fem_CreateNodesSet"
<< "FEM_MeshNetgenFromShape"
<< "FEM_MeshGmshFromShape"
<< "FEM_MeshRegion"
<< "FEM_MeshGroup"
//<< "FEM_CreateNodesSet"
<< "Separator"
<< "Fem_MaterialSolid"
<< "Fem_MaterialFluid"
<< "Fem_MaterialMechanicalNonlinear"
<< "Fem_BeamSection"
<< "Fem_ShellThickness"
<< "Fem_FluidSection"
<< "FEM_MaterialSolid"
<< "FEM_MaterialFluid"
<< "FEM_MaterialMechanicalNonlinear"
<< "FEM_BeamSection"
<< "FEM_ShellThickness"
<< "FEM_FluidSection"
<< "Separator"
<< "Fem_ConstraintFixed"
<< "Fem_ConstraintDisplacement"
<< "Fem_ConstraintPlaneRotation"
<< "Fem_ConstraintContact"
<< "Fem_ConstraintTransform"
<< "FEM_ConstraintFixed"
<< "FEM_ConstraintDisplacement"
<< "FEM_ConstraintPlaneRotation"
<< "FEM_ConstraintContact"
<< "FEM_ConstraintTransform"
<< "Separator"
<< "Fem_ConstraintSelfWeight"
<< "Fem_ConstraintForce"
<< "Fem_ConstraintPressure"
<< "FEM_ConstraintSelfWeight"
<< "FEM_ConstraintForce"
<< "FEM_ConstraintPressure"
//<< "Separator"
//<< "Fem_ConstraintBearing"
//<< "Fem_ConstraintGear"
//<< "Fem_ConstraintPulley"
//<< "Fem_ConstraintFluidBoundary"
//<< "FEM_ConstraintBearing"
//<< "FEM_ConstraintGear"
//<< "FEM_ConstraintPulley"
//<< "FEM_ConstraintFluidBoundary"
<< "Separator"
<< "Fem_ConstraintTemperature"
<< "Fem_ConstraintHeatflux"
<< "Fem_ConstraintInitialTemperature"
<< "FEM_ConstraintTemperature"
<< "FEM_ConstraintHeatflux"
<< "FEM_ConstraintInitialTemperature"
<< "Separator"
<< "Fem_ControlSolver"
<< "Fem_RunSolver"
<< "FEM_ControlSolver"
<< "FEM_RunSolver"
<< "Separator"
<< "Fem_PurgeResults"
<< "Fem_ShowResult";
<< "FEM_PurgeResults"
<< "FEM_ShowResult";
#ifdef FC_USE_VTK
Gui::ToolBarItem* post = new Gui::ToolBarItem(root);
post->setCommand("Post Processing");
*post << "Fem_PostApplyChanges"
<< "Fem_PostPipelineFromResult"
*post << "FEM_PostApplyChanges"
<< "FEM_PostPipelineFromResult"
<< "Separator"
<< "Fem_PostCreateClipFilter"
<< "Fem_PostCreateScalarClipFilter"
<< "Fem_PostCreateCutFilter"
<< "Fem_PostCreateWarpVectorFilter"
<< "Fem_PostCreateDataAlongLineFilter"
<< "Fem_PostCreateLinearizedStressesFilter"
<< "FEM_PostCreateClipFilter"
<< "FEM_PostCreateScalarClipFilter"
<< "FEM_PostCreateCutFilter"
<< "FEM_PostCreateWarpVectorFilter"
<< "FEM_PostCreateDataAlongLineFilter"
<< "FEM_PostCreateLinearizedStressesFilter"
<< "Separator"
<< "Fem_PostCreateFunctions";
<< "FEM_PostCreateFunctions";
#endif
return root;
@ -132,55 +132,55 @@ Gui::MenuItem* Workbench::setupMenuBar() const
Gui::MenuItem* util = new Gui::MenuItem;
util->setCommand("&Utilities");
*util << "Fem_FemMesh2Mesh";
*util << "FEM_FemMesh2Mesh";
Gui::MenuItem* fem = new Gui::MenuItem;
root->insertItem(item, fem);
fem->setCommand("&FEM");
*fem << util
<< "Separator"
<< "Fem_Analysis"
<< "Fem_SolverCalculix"
<< "Fem_SolverZ88"
<< "FEM_Analysis"
<< "FEM_SolverCalculix"
<< "FEM_SolverZ88"
<< "Separator"
<< "Fem_MeshNetgenFromShape"
<< "Fem_MeshGmshFromShape"
<< "Fem_MeshRegion"
<< "Fem_MeshGroup"
<< "Fem_CreateNodesSet"
<< "FEM_MeshNetgenFromShape"
<< "FEM_MeshGmshFromShape"
<< "FEM_MeshRegion"
<< "FEM_MeshGroup"
<< "FEM_CreateNodesSet"
<< "Separator"
<< "Fem_MaterialSolid"
<< "Fem_MaterialFluid"
<< "Fem_MaterialMechanicalNonlinear"
<< "Fem_BeamSection"
<< "Fem_ShellThickness"
<< "Fem_FluidSection"
<< "FEM_MaterialSolid"
<< "FEM_MaterialFluid"
<< "FEM_MaterialMechanicalNonlinear"
<< "FEM_BeamSection"
<< "FEM_ShellThickness"
<< "FEM_FluidSection"
<< "Separator"
<< "Fem_ConstraintFixed"
<< "Fem_ConstraintDisplacement"
<< "Fem_ConstraintPlaneRotation"
<< "Fem_ConstraintContact"
<< "Fem_ConstraintTransform"
<< "FEM_ConstraintFixed"
<< "FEM_ConstraintDisplacement"
<< "FEM_ConstraintPlaneRotation"
<< "FEM_ConstraintContact"
<< "FEM_ConstraintTransform"
<< "Separator"
<< "Fem_ConstraintSelfWeight"
<< "Fem_ConstraintForce"
<< "Fem_ConstraintPressure"
<< "FEM_ConstraintSelfWeight"
<< "FEM_ConstraintForce"
<< "FEM_ConstraintPressure"
<< "Separator"
<< "Fem_ConstraintBearing"
<< "Fem_ConstraintGear"
<< "Fem_ConstraintPulley"
<< "FEM_ConstraintBearing"
<< "FEM_ConstraintGear"
<< "FEM_ConstraintPulley"
<< "Separator"
<< "Fem_ConstraintFluidBoundary"
<< "FEM_ConstraintFluidBoundary"
<< "Separator"
<< "Fem_ConstraintTemperature"
<< "Fem_ConstraintHeatflux"
<< "Fem_ConstraintInitialTemperature"
<< "FEM_ConstraintTemperature"
<< "FEM_ConstraintHeatflux"
<< "FEM_ConstraintInitialTemperature"
<< "Separator"
<< "Fem_ControlSolver"
<< "Fem_RunSolver"
<< "FEM_ControlSolver"
<< "FEM_RunSolver"
<< "Separator"
<< "Fem_PurgeResults"
<< "Fem_ShowResult";
<< "FEM_PurgeResults"
<< "FEM_ShowResult";
return root;
}

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandAnalysis(FemCommands):
"the Fem_Analysis command definition"
"the FEM_Analysis command definition"
def __init__(self):
super(_CommandAnalysis, self).__init__()
self.resources = {'Pixmap': 'fem-analysis',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_Analysis", "Analysis container"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_Analysis", "Analysis container"),
'Accel': "N, A",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_Analysis", "Creates a analysis container with standard solver CalculiX")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_Analysis", "Creates a analysis container with standard solver CalculiX")}
self.is_active = 'with_document'
def Activated(self):
@ -57,4 +57,4 @@ class _CommandAnalysis(FemCommands):
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [App.activeDocument()." + sel[0].Name + "]")
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_Analysis', _CommandAnalysis())
FreeCADGui.addCommand('FEM_Analysis', _CommandAnalysis())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandBeamSection(FemCommands):
"The Fem_BeamSection command definition"
"The FEM_BeamSection command definition"
def __init__(self):
super(_CommandBeamSection, self).__init__()
self.resources = {'Pixmap': 'fem-beam-section',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_BeamSection", "Beam cross section"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_BeamSection", "Beam cross section"),
'Accel': "C, B",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_BeamSection", "Creates a FEM beam cross section")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_BeamSection", "Creates a FEM beam cross section")}
self.is_active = 'with_analysis'
def Activated(self):
@ -49,4 +49,4 @@ class _CommandBeamSection(FemCommands):
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeBeamSection()]")
FreeCADGui.addCommand('Fem_BeamSection', _CommandBeamSection())
FreeCADGui.addCommand('FEM_BeamSection', _CommandBeamSection())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandClearMesh(FemCommands):
"clear the FEM mesh"
"the FEM_ClearMesh command definition"
def __init__(self):
super(_CommandClearMesh, self).__init__()
self.resources = {'Pixmap': 'fem-femmesh-clear-mesh',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_ClearMesh", "Clear FEM mesh"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ClearMesh", "Clear FEM mesh"),
# 'Accel': "Z, Z",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_ClearMesh", "Clear the Mesh of a FEM mesh object")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_ClearMesh", "Clear the Mesh of a FEM mesh object")}
self.is_active = 'with_femmesh'
def Activated(self):
@ -53,4 +53,4 @@ class _CommandClearMesh(FemCommands):
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_ClearMesh', _CommandClearMesh())
FreeCADGui.addCommand('FEM_ClearMesh', _CommandClearMesh())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandConstraintSelfWeight(FemCommands):
"The Fem_ConstraintSelfWeight command definition"
"The FEM_ConstraintSelfWeight command definition"
def __init__(self):
super(_CommandConstraintSelfWeight, self).__init__()
self.resources = {'Pixmap': 'fem-constraint-selfweight',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_ConstraintSelfWeight", "Constraint self weigt"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ConstraintSelfWeight", "Constraint self weigt"),
'Accel': "C, W",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_ConstraintSelfWeight", "Creates a FEM constraint self weigt")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_ConstraintSelfWeight", "Creates a FEM constraint self weigt")}
self.is_active = 'with_analysis'
def Activated(self):
@ -49,4 +49,4 @@ class _CommandConstraintSelfWeight(FemCommands):
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeConstraintSelfWeight()]")
FreeCADGui.addCommand('Fem_ConstraintSelfWeight', _CommandConstraintSelfWeight())
FreeCADGui.addCommand('FEM_ConstraintSelfWeight', _CommandConstraintSelfWeight())

View File

@ -33,13 +33,13 @@ from PySide import QtCore
class _CommandControlSolver(FemCommands):
"the Fem_ControlSolver command definition"
"the FEM_ControlSolver command definition"
def __init__(self):
super(_CommandControlSolver, self).__init__()
self.resources = {'Pixmap': 'fem-control-solver',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_ControlSolver", "Solver job control"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ControlSolver", "Solver job control"),
'Accel': "S, C",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_ControlSolver", "Changes solver attributes and runs the calculations for the selected solver")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_ControlSolver", "Changes solver attributes and runs the calculations for the selected solver")}
self.is_active = 'with_solver'
def Activated(self):
@ -47,4 +47,4 @@ class _CommandControlSolver(FemCommands):
FreeCADGui.ActiveDocument.setEdit(solver_obj, 0)
FreeCADGui.addCommand('Fem_ControlSolver', _CommandControlSolver())
FreeCADGui.addCommand('FEM_ControlSolver', _CommandControlSolver())

View File

@ -35,12 +35,12 @@ from PySide import QtCore
class _CommandFemMesh2Mesh(FemCommands):
# the Fem_FemMesh2Mesh command definition
# the FEM_FemMesh2Mesh command definition
def __init__(self):
super(_CommandFemMesh2Mesh, self).__init__()
self.resources = {'Pixmap': 'fem-femmesh-to-mesh',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_FemMesh2Mesh", "FEM mesh to mesh"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_FemMesh2Mesh", "Convert the surface of a FEM mesh to a mesh")}
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_FemMesh2Mesh", "FEM mesh to mesh"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_FemMesh2Mesh", "Convert the surface of a FEM mesh to a mesh")}
self.is_active = 'with_femmesh_andor_res'
def Activated(self):
@ -77,4 +77,4 @@ class _CommandFemMesh2Mesh(FemCommands):
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_FemMesh2Mesh', _CommandFemMesh2Mesh())
FreeCADGui.addCommand('FEM_FemMesh2Mesh', _CommandFemMesh2Mesh())

View File

@ -35,13 +35,13 @@ from PySide import QtCore
class _CommandFluidSection(FemCommands):
"The Fem_FluidSection command definition"
"The FEM_FluidSection command definition"
def __init__(self):
super(_CommandFluidSection, self).__init__()
self.resources = {'Pixmap': 'fem-fluid-section',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_FluidSection", "Fluid section for 1D flow"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_FluidSection", "Fluid section for 1D flow"),
'Accel': "C, B",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_FluidSection", "Creates a FEM Fluid section for 1D flow")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_FluidSection", "Creates a FEM Fluid section for 1D flow")}
self.is_active = 'with_analysis'
def Activated(self):
@ -50,4 +50,4 @@ class _CommandFluidSection(FemCommands):
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeFemFluidSection()]")
FreeCADGui.addCommand('Fem_FluidSection', _CommandFluidSection())
FreeCADGui.addCommand('FEM_FluidSection', _CommandFluidSection())

View File

@ -35,13 +35,13 @@ from PySide import QtCore
class _CommandMaterialFluid(FemCommands):
"the Fem_MaterialFluid command definition"
"the FEM_MaterialFluid command definition"
def __init__(self):
super(_CommandMaterialFluid, self).__init__()
self.resources = {'Pixmap': 'fem-material-fluid',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MaterialFluid", "FEM material for Fluid"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialFluid", "FEM material for Fluid"),
'Accel': "M, M",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MaterialFluid", "Creates a FEM material for Fluid")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialFluid", "Creates a FEM material for Fluid")}
self.is_active = 'with_analysis'
def Activated(self):
@ -55,4 +55,4 @@ class _CommandMaterialFluid(FemCommands):
FreeCADGui.doCommand("Gui.activeDocument().setEdit(App.ActiveDocument.ActiveObject.Name)")
FreeCADGui.addCommand('Fem_MaterialFluid', _CommandMaterialFluid())
FreeCADGui.addCommand('FEM_MaterialFluid', _CommandMaterialFluid())

View File

@ -35,13 +35,13 @@ from PySide import QtCore
class _CommandMaterialMechanicalNonlinear(FemCommands):
"The Fem_MaterialMechanicalNonlinear command definition"
"The FEM_MaterialMechanicalNonlinear command definition"
def __init__(self):
super(_CommandMaterialMechanicalNonlinear, self).__init__()
self.resources = {'Pixmap': 'fem-material-nonlinear',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MaterialMechanicalNonlinear", "Nonlinear mechanical material"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialMechanicalNonlinear", "Nonlinear mechanical material"),
'Accel': "C, W",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MaterialMechanicalNonlinear", "Creates a nonlinear mechanical material")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialMechanicalNonlinear", "Creates a nonlinear mechanical material")}
self.is_active = 'with_material'
def Activated(self):
@ -74,4 +74,4 @@ class _CommandMaterialMechanicalNonlinear(FemCommands):
if solver_object and solver_object.SolverType == 'FemSolverCalculix':
solver_object.MaterialNonlinearity = "nonlinear"
FreeCADGui.addCommand('Fem_MaterialMechanicalNonlinear', _CommandMaterialMechanicalNonlinear())
FreeCADGui.addCommand('FEM_MaterialMechanicalNonlinear', _CommandMaterialMechanicalNonlinear())

View File

@ -35,13 +35,13 @@ from PySide import QtCore
class _CommandMaterialSolid(FemCommands):
"the Fem_MaterialSolid command definition"
"the FEM_MaterialSolid command definition"
def __init__(self):
super(_CommandMaterialSolid, self).__init__()
self.resources = {'Pixmap': 'fem-material',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MaterialSolid", "FEM material for solid"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialSolid", "FEM material for solid"),
'Accel': "M, M",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MaterialSolid", "Creates a FEM material for solid")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialSolid", "Creates a FEM material for solid")}
self.is_active = 'with_analysis'
def Activated(self):
@ -55,4 +55,4 @@ class _CommandMaterialSolid(FemCommands):
FreeCADGui.doCommand("Gui.activeDocument().setEdit(App.ActiveDocument.ActiveObject.Name)")
FreeCADGui.addCommand('Fem_MaterialSolid', _CommandMaterialSolid())
FreeCADGui.addCommand('FEM_MaterialSolid', _CommandMaterialSolid())

View File

@ -35,12 +35,12 @@ from PySide import QtCore
class _CommandMeshGmshFromShape(FemCommands):
# the Fem_MeshGmshFromShape command definition
# the FEM_MeshGmshFromShape command definition
def __init__(self):
super(_CommandMeshGmshFromShape, self).__init__()
self.resources = {'Pixmap': 'fem-femmesh-gmsh-from-shape',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshGmshFromShape", "FEM mesh from shape by GMSH"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshGmshFromShape", "Create a FEM mesh from a shape by GMSH mesher")}
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshGmshFromShape", "FEM mesh from shape by GMSH"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshGmshFromShape", "Create a FEM mesh from a shape by GMSH mesher")}
self.is_active = 'with_part_feature'
def Activated(self):
@ -61,4 +61,4 @@ class _CommandMeshGmshFromShape(FemCommands):
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_MeshGmshFromShape', _CommandMeshGmshFromShape())
FreeCADGui.addCommand('FEM_MeshGmshFromShape', _CommandMeshGmshFromShape())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandMeshGroup(FemCommands):
"The Fem_MeshGroup command definition"
"The FEM_MeshGroup command definition"
def __init__(self):
super(_CommandMeshGroup, self).__init__()
self.resources = {'Pixmap': 'fem-femmesh-from-shape',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshGroup", "FEM mesh group"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshGroup", "FEM mesh group"),
'Accel': "M, G",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshGroup", "Creates a FEM mesh group")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshGroup", "Creates a FEM mesh group")}
self.is_active = 'with_gmsh_femmesh'
def Activated(self):
@ -54,4 +54,4 @@ class _CommandMeshGroup(FemCommands):
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_MeshGroup', _CommandMeshGroup())
FreeCADGui.addCommand('FEM_MeshGroup', _CommandMeshGroup())

View File

@ -35,12 +35,12 @@ from PySide import QtCore
class _CommandMeshNetgenFromShape(FemCommands):
# the Fem_MeshNetgenFromShape command definition
# the FEM_MeshNetgenFromShape command definition
def __init__(self):
super(_CommandMeshNetgenFromShape, self).__init__()
self.resources = {'Pixmap': 'fem-femmesh-netgen-from-shape',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "FEM mesh from shape by Netgen"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "Create a FEM volume mesh from a solid or face shape by Netgen internal mesher")}
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshFromShape", "FEM mesh from shape by Netgen"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshFromShape", "Create a FEM volume mesh from a solid or face shape by Netgen internal mesher")}
self.is_active = 'with_part_feature'
def Activated(self):
@ -59,4 +59,4 @@ class _CommandMeshNetgenFromShape(FemCommands):
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_MeshNetgenFromShape', _CommandMeshNetgenFromShape())
FreeCADGui.addCommand('FEM_MeshNetgenFromShape', _CommandMeshNetgenFromShape())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandMeshRegion(FemCommands):
"The Fem_MeshRegion command definition"
"The FEM_MeshRegion command definition"
def __init__(self):
super(_CommandMeshRegion, self).__init__()
self.resources = {'Pixmap': 'fem-femmesh-region',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshRegion", "FEM mesh region"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshRegion", "FEM mesh region"),
'Accel': "M, R",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshRegion", "Creates a FEM mesh region")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshRegion", "Creates a FEM mesh region")}
self.is_active = 'with_gmsh_femmesh'
def Activated(self):
@ -54,4 +54,4 @@ class _CommandMeshRegion(FemCommands):
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_MeshRegion', _CommandMeshRegion())
FreeCADGui.addCommand('FEM_MeshRegion', _CommandMeshRegion())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandPrintMeshInfo(FemCommands):
"Print FEM mesh info"
"the FEM_PrintMeshInfo command definition"
def __init__(self):
super(_CommandPrintMeshInfo, self).__init__()
self.resources = {'Pixmap': 'fem-femmesh-print-info',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_PrintMeshInfo", "Print FEM mesh info"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_PrintMeshInfo", "Print FEM mesh info"),
# 'Accel': "Z, Z",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_PrintMeshInfo", "Print FEM mesh info")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_PrintMeshInfo", "Print FEM mesh info")}
self.is_active = 'with_femmesh'
def Activated(self):
@ -55,4 +55,4 @@ class _CommandPrintMeshInfo(FemCommands):
FreeCADGui.Selection.clearSelection()
FreeCADGui.addCommand('Fem_PrintMeshInfo', _CommandPrintMeshInfo())
FreeCADGui.addCommand('FEM_PrintMeshInfo', _CommandPrintMeshInfo())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandPurgeResults(FemCommands):
# the Fem_PurgeResults command definition
# the FEM_PurgeResults command definition
def __init__(self):
super(_CommandPurgeResults, self).__init__()
self.resources = {'Pixmap': 'fem-purge-results',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_PurgeResults", "Purge results"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_PurgeResults", "Purge results"),
'Accel': "S, S",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_PurgeResults", "Purges all results from active analysis")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_PurgeResults", "Purges all results from active analysis")}
self.is_active = 'with_results'
def Activated(self):
@ -49,4 +49,4 @@ class _CommandPurgeResults(FemCommands):
self.hide_meshes_show_parts_constraints()
FreeCADGui.addCommand('Fem_PurgeResults', _CommandPurgeResults())
FreeCADGui.addCommand('FEM_PurgeResults', _CommandPurgeResults())

View File

@ -33,13 +33,13 @@ from PySide import QtCore, QtGui
class _CommandRunSolver(FemCommands):
# the Fem_RunSolver command definition
# the FEM_RunSolver command definition
def __init__(self):
super(_CommandRunSolver, self).__init__()
self.resources = {'Pixmap': 'fem-run-solver',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_RunAnalysis", "Run solver calculations"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_RunAnalysis", "Run solver calculations"),
'Accel': "R, C",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_RunAnalysis", "Runs the calculations for the selected solver")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_RunAnalysis", "Runs the calculations for the selected solver")}
self.is_active = 'with_solver'
def Activated(self):
@ -77,4 +77,4 @@ class _CommandRunSolver(FemCommands):
QtGui.QMessageBox.critical(None, "Not known solver type", message)
FreeCADGui.addCommand('Fem_RunSolver', _CommandRunSolver())
FreeCADGui.addCommand('FEM_RunSolver', _CommandRunSolver())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandShellThickness(FemCommands):
"The Fem_ShellThickness command definition"
"The FEM_ShellThickness command definition"
def __init__(self):
super(_CommandShellThickness, self).__init__()
self.resources = {'Pixmap': 'fem-shell-thickness',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_ShellThickness", "Shell plate thickness"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ShellThickness", "Shell plate thickness"),
'Accel': "C, S",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_ShellThickness", "Creates a FEM shell plate thickness")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_ShellThickness", "Creates a FEM shell plate thickness")}
self.is_active = 'with_analysis'
def Activated(self):
@ -49,4 +49,4 @@ class _CommandShellThickness(FemCommands):
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeShellThickness()]")
FreeCADGui.addCommand('Fem_ShellThickness', _CommandShellThickness())
FreeCADGui.addCommand('FEM_ShellThickness', _CommandShellThickness())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandShowResult(FemCommands):
"the Fem show reslult command definition"
"the FEM_show reslult command definition"
def __init__(self):
super(_CommandShowResult, self).__init__()
self.resources = {'Pixmap': 'fem-result',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_ShowResult", "Show result"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ShowResult", "Show result"),
'Accel': "S, R",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_ShowResult", "Shows and visualizes selected result data")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_ShowResult", "Shows and visualizes selected result data")}
self.is_active = 'with_selresult'
def Activated(self):
@ -51,4 +51,4 @@ class _CommandShowResult(FemCommands):
result_object.ViewObject.startEditing()
FreeCADGui.addCommand('Fem_ShowResult', _CommandShowResult())
FreeCADGui.addCommand('FEM_ShowResult', _CommandShowResult())

View File

@ -35,13 +35,13 @@ from PySide import QtCore
class _CommandSolverCalculix(FemCommands):
"The Fem_SolverCalculix command definition"
"The FEM_SolverCalculix command definition"
def __init__(self):
super(_CommandSolverCalculix, self).__init__()
self.resources = {'Pixmap': 'fem-solver',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_SolverCalculix", "Solver CalculiX"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_SolverCalculix", "Solver CalculiX"),
'Accel': "S, C",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_SolverCalculix", "Creates a FEM solver CalculiX")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_SolverCalculix", "Creates a FEM solver CalculiX")}
self.is_active = 'with_analysis'
def Activated(self):
@ -59,4 +59,4 @@ class _CommandSolverCalculix(FemCommands):
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeSolverCalculix()]")
FreeCADGui.addCommand('Fem_SolverCalculix', _CommandSolverCalculix())
FreeCADGui.addCommand('FEM_SolverCalculix', _CommandSolverCalculix())

View File

@ -34,13 +34,13 @@ from PySide import QtCore
class _CommandSolverZ88(FemCommands):
"The Fem_SolverZ88 command definition"
"The FEM_SolverZ88 command definition"
def __init__(self):
super(_CommandSolverZ88, self).__init__()
self.resources = {'Pixmap': 'fem-solver',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_SolverZ88", "Solver Z88"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_SolverZ88", "Solver Z88"),
'Accel': "S, Z",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_SolverZ88", "Creates a FEM solver Z88")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_SolverZ88", "Creates a FEM solver Z88")}
self.is_active = 'with_analysis'
def Activated(self):
@ -49,4 +49,4 @@ class _CommandSolverZ88(FemCommands):
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeSolverZ88()]")
FreeCADGui.addCommand('Fem_SolverZ88', _CommandSolverZ88())
FreeCADGui.addCommand('FEM_SolverZ88', _CommandSolverZ88())