ATM only Arch Components (thus all Arch Objects) do have a property called Material. You can acces it like any other property. This property is a link to a material object. This material object does have a property "Material" which is a dictionary with all the data inside. This looks like this:
Code: Select all
>>>
>>> App.ActiveDocument.Component.Material.Name
'Material'
>>> App.ActiveDocument.Component.Material.Label
'CalculiX-Steel'
>>>
>>>
>>> App.ActiveDocument.getObjectsByLabel("CalculiX-Steel")[0].Material
{'AuthorAndLicense': 'CalculiX-Steel', 'CardName': 'CalculiX-Steel', 'Color': '(0.8, 0.8, 0.8, 1.0)', 'Density': '7900 kg/m^3', 'Description': 'Standard steel material for CalculiX sample calculations', 'DiffuseColor': '(0.8, 0.8, 0.8, 1.0)', 'Father': 'Metal', 'Name': 'CalculiX-Steel', 'PoissonRatio': '0.3', 'ProductURL': '', 'SectionColor': '(0.8, 0.8, 0.8, 1.0)', 'SpecificHeat': '590 J/kg/K', 'StandardCode': '', 'ThermalConductivity': '43 W/m/K', 'ThermalExpansionCoefficient': '0.000012 m/m/K', 'Transparency': '0', 'ViewColor': '(0.8, 0.8, 0.8, 1.0)', 'YoungsModulus': '210000 MPa'}
>>>