Fem: Add Tool property to solvers and meshers

(cherry picked from commit 6f8e9f1a9e)
This commit is contained in:
marioalexis
2026-02-21 15:26:04 -06:00
committed by Chris Hennes
parent d90b6ebd0d
commit 2abb4b9481
4 changed files with 28 additions and 0 deletions
+16
View File
@@ -46,6 +46,22 @@ FemMeshShapeBaseObject::FemMeshShapeBaseObject()
Prop_None,
"Geometry object, the mesh is made from. The geometry object has to have a Shape."
);
ADD_PROPERTY_TYPE(
Tool,
(Py::Object()),
"FEM Mesh",
App::PropertyType(
App::Prop_Transient | App::Prop_Hidden | App::Prop_ReadOnly | App::Prop_Output
),
"Tool object for run the mesher"
);
ADD_PROPERTY_TYPE(
WorkingDirectory,
(""),
"FEM Mesh",
App::PropertyType(App::Prop_Transient | App::Prop_Hidden | App::Prop_Output),
"Mesher working directory"
);
Shape.setScope(LinkScope::Global);
}
+2
View File
@@ -39,6 +39,8 @@ public:
~FemMeshShapeBaseObject() override;
App::PropertyLink Shape;
App::PropertyPythonObject Tool;
App::PropertyPath WorkingDirectory;
/// returns the type name of the ViewProvider
const char* getViewProviderName() const override
+9
View File
@@ -50,6 +50,15 @@ FemSolverObject::FemSolverObject()
App::PropertyType(App::Prop_Transient | App::Prop_Hidden | App::Prop_Output),
"Solver working directory"
);
ADD_PROPERTY_TYPE(
Tool,
(Py::Object()),
"Solver",
App::PropertyType(
App::Prop_Transient | App::Prop_Hidden | App::Prop_ReadOnly | App::Prop_Output
),
"Tool for run the solver"
);
}
FemSolverObject::~FemSolverObject() = default;
+1
View File
@@ -42,6 +42,7 @@ public:
~FemSolverObject() override;
App::PropertyLinkList Results;
App::PropertyPythonObject Tool;
App::PropertyPath WorkingDirectory;
// Attributes are implemented in the FemSolverObjectPython