BOM is byte order mark and it was crashing ConfigParser:
Traceback (most recent call last):
File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 109, in setEdit
taskd = _MechanicalMaterialTaskPanel(self.Object)
File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 138, in __init__
self.import_materials()
File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 264, in import_materials
self.add_mat_dir(user_mat_dirname,
":/icons/preferences-general.svg")
File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 245, in add_mat_dir
self.materials[a_path] = Material.importFCMat(a_path)
File "/home/przemo/software/FreeCAD/build/Mod/Material/Material.py",
line 57, in importFCMat
Config.read(fileName)
File "/usr/lib64/python2.7/ConfigParser.py", line 305, in read
self._read(fp, filename)
File "/usr/lib64/python2.7/ConfigParser.py", line 512, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
<class 'ConfigParser.MissingSectionHeaderError'>: File contains no
section headers.
file: /home/przemo/.FreeCAD/Materials/AlMg3F24.FCMat, line: 1
'\xef\xbb\xbf; AlMg3F24 - 3.3535.26 - DIN 1725\n'
Reported-by: sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
22 lines
572 B
Plaintext
22 lines
572 B
Plaintext
; 2C10 - 1.1121 - EN 10084
|
|
; (c) 2014 M. Münch - GNU Lesser General Public License (LGPL)
|
|
; information about the content of this card can be found here:
|
|
; http://www.freecadweb.org/wiki/index.php?title=Material
|
|
|
|
[FCMat]
|
|
Name = 2C10
|
|
NameDE = Ck10
|
|
Father = Metal
|
|
YoungsModulus = 210000 MPa
|
|
UltimateTensileStrength = 640
|
|
PoissonRatio = 0.3
|
|
Density = 7800 kg/m^3
|
|
KindOfMaterial = Case-hardened steel
|
|
KindOfMaterialDE = Einsatzstahl
|
|
MaterialNumber = 1.1121
|
|
ModulusOfShare = 81000
|
|
Norm = EN 10084
|
|
ThermalExpansionCoefficient = 1.10E-005
|
|
UltimateStrain = 0
|
|
YieldStrength = 390
|