https://github.com/FreeCAD/FreeCAD/blob ... at.py#L106 and https://github.com/FreeCAD/FreeCAD/blob ... Mat.py#L31
If a material card is exported any known material parameter is written to file, even if the parameter is empty or even if the parameter makes no sense at all for this material. For example a fluid material has no young's modulus or not tensile strength.
IMHO we should define some mandatory parameter as name and only write the mandatory parameter and the parameter which really have a value.
Bernd
Should any material have any known material property?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Should any material have any known material property?
https://github.com/FreeCAD/FreeCAD/pull ... c2070c89dbbernd wrote: ↑Thu May 31, 2018 6:52 am https://github.com/FreeCAD/FreeCAD/blob ... at.py#L106 and https://github.com/FreeCAD/FreeCAD/blob ... Mat.py#L31
If a material card is exported any known material parameter is written to file, even if the parameter is empty or even if the parameter makes no sense at all for this material. For example a fluid material has no young's modulus or not tensile strength.
IMHO we should define some mandatory parameter as name and only write the mandatory parameter and the parameter which really have a value.
Bernd