質問

Using the Revit API is there a way to get the human readable version of the BuiltInParameterGroup enumeration values (Dimensions, Materials and Finishes, etc)?

役に立ちましたか?

解決

I found this post on the Autodesk forums that shows how to use the LabelUtils class.

string humanReadableGroup = 
  LabelUtils.GetLabelFor(BuiltInParameterGroup.PG_MATERIALS);

他のヒント

I don't have the code on the of my mind, but you could use the Revit Lookup Snoop (source code comes with it) that comes with the SDK to do this..

You can get the UI/Display name for any BuiltInParameterGroup enum value such as the PG_CONSTRAINTS like this:

MessageBox.Show(info, LabelUtils.GetLabelFor(BuiltInParameterGroup.PG_CONSTRAINTS) + "Group");
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top