0

使用 Revit 2017 Python API,我正在尝试创建新材料,然后组装其中的一些以创建新型墙。它适用于所有属性,除了比热!

基本上,我所做的是:

  1. 创建热资产:

    themalA = ThermalAsset('Test', ThermalMaterialType.Solid)
    
  2. 为该热资产设置不同的热属性(虚拟值):

    thermalA.ThermalConductivity = 0.01
    
    thermalA.SpecificHeat = 0.001
    
    thermalA.Density = 1000.0
    
  3. 然后我使用该热资产创建一个 PropertySetElement:

    pse = PropertySetElement.Create(doc, thermalA)
    
  4. 然后我将它分配给我的材料(我之前创建的):

    mat.SetMaterialAspectByPropertySet(MaterialAspect.Thermal, pse)
    

之后,我查看了 Revit 中的材料列表,并查看了热性能。一切似乎都很好,除了比热,它保持在 0.0239 btu/(lb. F),无论我在分配比热时输入的值是什么。密度还可以,导热系数还可以,但比热不行。

我没有收到错误消息。

我错过了什么?

非常感谢您的帮助。

阿尔诺。

4

1 回答 1

0

您指定的值是预期单位吗?每开尔文英尺,平方秒。参见,http ://thebuildingcoder.typepad.com/blog/2013/04/whats-new-in-the-revit-2014-api.html > ThermalAsset.SpecificHeat。

我将此作为问题REVIT-111206 [API:设置 ThermalAsset SpecificHeat 失败]提交给开发团队进行进一步分析。您能否提供一个完整的可重现案例供他们测试,例如,一个带有嵌入式宏的最小 RVT 模型要运行,参见http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b ? 谢谢!

于 2017-04-04T06:34:13.150 回答