Specify the specific heat of a material with Revit 2017 Python API

柔情痞子 提交于 2019-12-12 02:34:22

问题


With Revit 2017 Python API, I am trying to create new materials, and then assembling some of these to create new type of walls. It goes pretty well for all properties, except for the specific heat!

Basically, what I do is:

  1. create a thermalAsset:

    themalA = ThermalAsset('Test', ThermalMaterialType.Solid)
    
  2. Set the different thermal properties for that thermal asset (dummy values):

    thermalA.ThermalConductivity = 0.01
    
    thermalA.SpecificHeat = 0.001
    
    thermalA.Density = 1000.0
    
  3. Then I create a PropertySetElement with that thermal asset:

    pse = PropertySetElement.Create(doc, thermalA)
    
  4. Then I assign it to my material (that I previously created):

    mat.SetMaterialAspectByPropertySet(MaterialAspect.Thermal, pse)
    

Afetr that, I take a look in my materials list in Revit, and look at the thermal properties. Everything seems ok, except the Specific Heat, which remains at 0.0239 btu/(lb. F), whatever the value I input when I assign the specific heat. Density is ok, thermal conductivity is ok, but not specific heat.

I got no error message.

What am I missing?

Thanks a lot for any help.

Arnaud.


回答1:


Is the value you specify in the expected unit? Feet per Kelvin, squared-second. Cf., http://thebuildingcoder.typepad.com/blog/2013/04/whats-new-in-the-revit-2014-api.html > ThermalAsset.SpecificHeat.

I submitted this to the development team for further analysis as issue REVIT-111206 [API: setting ThermalAsset SpecificHeat fails]. Can you please provide a full reproducible case for them to test, e.g., a minimal RVT model with an embedded macro to run, cf., http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b? Thank you!



来源:https://stackoverflow.com/questions/43188885/specify-the-specific-heat-of-a-material-with-revit-2017-python-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!