Step to reproduce :
Create a new doc
Switch to Arch WB
Create a new Material
At the Edit panel clic the Material Editor button
Choose a material (like Steel-1C35) in the list of the MaterialEditor
Clic Ok (this close the MaterialEditor)
Python report the Material Object look like an empty material.
Code: Select all
>>> obj = App.getDocument("Sans_nom").getObject("Material")
>>> obj.Material
{'ProductURL': u'', 'StandardCode': u'', 'Name': u'Material', 'Description': u'', 'DiffuseColor': u'(0.5019607843137255, 0.5019607843137255, 0.5019607843137255)'}
>>>
Code: Select all
>>> obj = App.getDocument("Sans_nom").getObject("Material")
>>> obj.Material
{'Density': u'7800 kg/m^3', 'UltimateStrain': u'21', 'ModulusOfShare': u'81000', 'UltimateTensileStrength': u'480', 'PoissonRatio': u'0.3', 'StandardCode': u'', 'Description': u'Non-alloy quality steel', 'YoungsModulus': u'210000 MPa', 'DiffuseColor': u'(0.5019607843137255, 0.5019607843137255, 0.5019607843137255)', 'Norm': u'EN 10083-1', 'Name': u'1C35', 'ThermalExpansionCoefficient': u'1.10E-005', 'Father': u'Metal', 'DescriptionPL': u'Wysokogatunkowa stal niestopowa', 'NameDE': u'C35', 'YieldStrength': u'300', 'MaterialNumber': u'1.0501', 'AuthorAndLicense': u'(c) 2014 M. M\xfcnch - GNU Lesser General Public License (LGPL)', 'CardName': u'1C35 - 1.0501 - EN 10083-1', 'KindOfMaterialDE': u'Verg\xfctungsstahl', 'KindOfMaterial': u'Heat-treatable steel', 'ProductURL': u''}
>>>
https://github.com/wood-galaxy/FreeCAD/ ... -materials