Now almost everything works also on mine, in details
[*] Create the piece
[*] The Analysis is created
[*] Mesh GUI shows correctly
[*] Mesh is created without elements, in the terminal output is
Code: Select all
TypeError: Can't call meta function because I have no idea how to handle Base::Quantity
TypeError: Can't call meta function because I have no idea how to handle Base::Quantity
========================== Dump contents of mesh ==========================
1) Total number of nodes: 0
2) Total number of edges: 0
3) Total number of faces: 0
4) Total number of polygons: 0
5) Total number of volumes: 0
6) Total number of polyhedrons: 0
7) Total number of linear edges: 0
8) Total number of linear faces: 0
9) Total number of linear volumes: 0
10) Total number of quadratic edges: 0
11) Total number of quadratic faces: 0
12) Total number of quadratic volumes: 0
===========================================================================
[*] When I click Material, the beautiful material GUI shows itselfs also with the library of material included
[*] When I click on OK, however, the output in console is
Code: Select all
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py", line 261, in accept
if checkunits(self.material) is True:
File "/usr/lib/freecad/Mod/Material/materialtools/cardutils.py", line 609, in check_mat_units
known_quantities = get_known_material_quantity_parameter()
File "/usr/lib/freecad/Mod/Material/materialtools/cardutils.py", line 330, in get_known_material_quantity_parameter
template_data = get_material_template()
File "/usr/lib/freecad/Mod/Material/materialtools/cardutils.py", line 224, in get_material_template
import yaml
<class 'ModuleNotFoundError'>: No module named 'yaml'
I searched on Internet, found nothing about this.
Output in Python console is
Code: Select all
Python 3.7.3 (default, Mar 26 2019, 21:43:19)
[GCC 8.2.1 20181127] on linux
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> App.newDocument("Senza nome")
>>> App.setActiveDocument("Senza_nome")
>>> App.ActiveDocument=App.getDocument("Senza_nome")
>>> Gui.ActiveDocument=Gui.getDocument("Senza_nome")
>>> Gui.activeDocument().activeView().viewDefaultOrientation()
>>> Gui.activateWorkbench("PartWorkbench")
>>> App.ActiveDocument.addObject("Part::Box","Box")
>>> App.ActiveDocument.ActiveObject.Label = "Cubo"
>>> App.ActiveDocument.recompute()
>>> Gui.SendMsgToActiveView("ViewFit")
>>> Gui.activateWorkbench("FemWorkbench")
>>> import FemGui
>>> import ObjectsFem
>>> ObjectsFem.makeAnalysis(FreeCAD.ActiveDocument, 'Analysis')
>>> FemGui.setActiveAnalysis(FreeCAD.ActiveDocument.ActiveObject)
>>> ObjectsFem.makeSolverCalculixCcxTools(FreeCAD.ActiveDocument)
>>> FemGui.getActiveAnalysis().addObject(FreeCAD.ActiveDocument.ActiveObject)
>>> ObjectsFem.makeMeshGmsh(FreeCAD.ActiveDocument, 'FEMMeshGmsh')
>>> FreeCAD.ActiveDocument.ActiveObject.Part = FreeCAD.ActiveDocument.Box
>>> FemGui.getActiveAnalysis().addObject(FreeCAD.ActiveDocument.ActiveObject)
>>> FreeCADGui.ActiveDocument.setEdit(FreeCAD.ActiveDocument.ActiveObject.Name)
>>> print(FreeCAD.ActiveDocument.FEMMeshGmsh.FemMesh)
>>> import PySide
>>> mesh_info = str(FreeCAD.ActiveDocument.FEMMeshGmsh.FemMesh)
>>> PySide.QtGui.QMessageBox.information(None, 'FEM Mesh Info', mesh_info)
>>> FemGui.getActiveAnalysis().addObject(ObjectsFem.makeMaterialSolid(FreeCAD.ActiveDocument, 'SolidMaterial'))
>>> FreeCADGui.ActiveDocument.setEdit(FreeCAD.ActiveDocument.ActiveObject.Name)
>>> FemGui.setActiveAnalysis(App.activeDocument().Analysis)
>>> FemGui.setActiveAnalysis(App.activeDocument().Analysis)
>>> FemGui.setActiveAnalysis(App.activeDocument().Analysis)