Question

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

Was it helpful?

Solution

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

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

OTHER TIPS

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");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top