`
923723914
  • 浏览: 635174 次
文章分类
社区版块
存档分类
最新评论

Revit编程如何获取内置参数对应的中文字符串?

 
阅读更多


Revit中参数都有一个组,我们通过Definition.ParameterGroup 将会返回一个BuiltInParameterGroup类型的枚举对象。

如何获得这个对应的中文组的名字?


答:

通过

LabelUtils.GetLabelFor(BuiltInParameterGroup)既可以返回你要的结果。


LabelUtils还可以返回内置参数的对应字符串,显示单位,参数类型等等内置类型的对应字符串。

下面是所有可用的函数。


Public methodStatic member GetLabelFor(BuiltInParameter)
Gets the user-visible name for a BuiltInParameter.
Public methodStatic member GetLabelFor(BuiltInParameterGroup)
Gets the user-visible name for a BuiltInParameterGroup.
Public methodStatic member GetLabelFor(DisplayUnitType)
Gets the user-visible name for a DisplayUnitType.
Public methodStatic member GetLabelFor(ParameterType)
Gets the user-visible name for a ParameterType.
Public methodStatic member GetLabelFor(UnitSymbolType)
Gets the user-visible name for a UnitSymbolType.
Public methodStatic member GetLabelFor(UnitType)
Gets the user-visible name for a UnitType.
Public methodStatic member GetLabelFor(DuctLossMethodType, Document)
Gets the user-visible name for a DuctLossMethodType.
Public methodStatic member GetLabelFor(gbXMLBuildingType, Document)
Gets the user-visible name for a gbXMLBuildingType.
Public methodStatic member GetLabelFor(PipeFlowState, Document)
Gets the user-visible name for a PipeFlowState.
Public methodStatic member GetLabelFor(PipeLossMethodType, Document)
Gets the user-visible name for a PipeLossMethodType.

转载请复制以下信息:
原文链接: http://blog.csdn.net/joexiongjin/article/details/10149127
作者: 叶雄进 , Autodesk ADN

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics