to print the supported FEM document object types you could use:

Code: Select all

```
App.newDocument()
module = 'Fem'
FreeCADGui.doCommand('import ' + module)
for s in sorted(App.ActiveDocument.supportedTypes()):
if s.startswith(module):
print s
```

Code: Select all

```
>>> import Fem
>>> for s in sorted(App.ActiveDocument.supportedTypes()):
... if s.startswith(module):
... print s
...
Fem::Constraint
Fem::ConstraintBearing
Fem::ConstraintContact
Fem::ConstraintDisplacement
Fem::ConstraintFixed
Fem::ConstraintFluidBoundary
Fem::ConstraintForce
Fem::ConstraintGear
Fem::ConstraintHeatflux
Fem::ConstraintInitialTemperature
Fem::ConstraintPlaneRotation
Fem::ConstraintPressure
Fem::ConstraintPulley
Fem::ConstraintTemperature
Fem::DocumentObject
Fem::FeaturePython
Fem::FemAnalysis
Fem::FemAnalysisPython
Fem::FemMeshObject
Fem::FemMeshShapeNetgenObject
Fem::FemMeshShapeObject
Fem::FemPostClipFilter
Fem::FemPostCutFilter
Fem::FemPostFilter
Fem::FemPostFunction
Fem::FemPostFunctionProvider
Fem::FemPostObject
Fem::FemPostPipeline
Fem::FemPostPlaneFunction
Fem::FemPostScalarClipFilter
Fem::FemPostSphereFunction
Fem::FemPostWarpVectorFilter
Fem::FemResultObject
Fem::FemSetElementsObject
Fem::FemSetFacesObject
Fem::FemSetGeometryObject
Fem::FemSetNodesObject
Fem::FemSetObject
Fem::FemSolverObject
Fem::FemSolverObjectPython
>>>
```

To get the supported attributes of an document object:

- select the object in tree browser

- in selection view right click on it --> to python console --> you have it saved in obj

- in python console just do a:

for the solver object you get

Code: Select all

```
>>> obj = App.getDocument("Unnamed2").getObject("CalculiX")
>>> obj.PropertiesList
['AnalysisType', 'EigenmodeHighLimit', 'EigenmodeLowLimit', 'EigenmodesCount', 'ExpressionEngine', 'GeometricalNonlinearity', 'IterationsControlParameterCutb', 'IterationsControlParameterIter', 'IterationsControlParameterTimeUse', 'IterationsMaximum', 'Label', 'MatrixSolverType', 'Proxy', 'SolverType', 'SteadyState', 'TimeEnd', 'TimeInitialStep', 'WorkingDir']
>>>
```

How to set an property see one of the posts before.

hope this helps, bernd