PropertySetElementGetThermalAsset Method |
Gets a copy of the ThermalAsset.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic ThermalAsset GetThermalAsset()
Public Function GetThermalAsset As ThermalAsset
public:
ThermalAsset^ GetThermalAsset()
member GetThermalAsset : unit -> ThermalAsset
Return Value
ThermalAsset
Exampleprivate void ReadMaterialThermalProps(Document document, Material material)
{
ElementId thermalAssetId = material.ThermalAssetId;
if (thermalAssetId != ElementId.InvalidElementId)
{
PropertySetElement pse = document.GetElement(thermalAssetId) as PropertySetElement;
if (pse != null)
{
ThermalAsset asset = pse.GetThermalAsset();
if (asset.ThermalMaterialType == ThermalMaterialType.Solid)
{
bool isTransmitsLight = asset.TransmitsLight;
double permeability = asset.Permeability;
double porosity = asset.Porosity;
double reflectivity = asset.Reflectivity;
double resistivity = asset.ElectricalResistivity;
StructuralBehavior behavior = asset.Behavior;
double heatOfVaporization = asset.SpecificHeatOfVaporization;
double emissivity = asset.Emissivity;
double conductivity = asset.ThermalConductivity;
double density = asset.Density;
}
}
}
}
See Also