Commit Graph

11 Commits

Author SHA1 Message Date
Bernd Hahnebach
9c545b1883 Material: cards, remove non standard language info 2019-02-19 10:27:26 -03:00
Bernd Hahnebach
1e631eed1f Material: mat cards, add unit to shear modulus 2019-02-15 19:02:42 +01:00
Bernd Hahnebach
ac0fc4d13c Material: mat cards, fix shear modulus name in all cards 2019-02-14 21:11:23 +01:00
Bernd Hahnebach
8223a5497a Material: cards, fix CardName 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
33e40b584e Material: mat cards, add some units to all cards where missing 2019-02-12 10:17:50 -02:00
Przemo Firszt
8c38e25377 Materials: Fix BOM problem in FCMat files
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>
2015-09-24 11:07:23 -03:00
sgrogan
60cd098ae9 Remove Specific Weight from .FCMat files 2015-09-14 17:36:44 -03:00
Przemo Firszt
d2c7366f9a Material: Clean material files
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:31 +01:00
Yorik van Havre
6685ae0142 Material: Added prefix to steel material cards 2015-04-12 13:31:49 -03:00
Yorik van Havre
9e67696fd5 Material: Added missing units 2015-02-27 13:31:13 -03:00
Yorik van Havre
7e86d94a48 Material: Added mk2's material cards 2014-12-13 13:36:51 -02:00