Skip to content

Commit

Permalink
FEM: use MechanicalMaterial instead App::MaterialObjectPython in TestFem
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Oct 9, 2015
1 parent a7f96cb commit 41852c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Fem/TestFem.py
Expand Up @@ -28,6 +28,7 @@
import FemTools
import FreeCAD
import MechanicalAnalysis
import MechanicalMaterial
import csv
import tempfile
import unittest
Expand Down Expand Up @@ -89,7 +90,7 @@ def create_new_mesh(self):
self.active_doc.recompute()

def create_new_material(self):
self.new_material_object = self.active_doc.addObject("App::MaterialObjectPython", 'MechanicalMaterial')
self.new_material_object = MechanicalMaterial.makeMechanicalMaterial('MechanicalMaterial')
mat = self.new_material_object.Material
mat['Name'] = "Steel"
mat['YoungsModulus'] = "200000 MPa"
Expand Down

0 comments on commit 41852c4

Please sign in to comment.