How to get all parameter choices in Revit?
There is 开发者_开发技巧an element's parameter that has like 5 choices (combobox's style). I know how to get the current selected one, but is there a way to retrieve the 4 other choices?
They are stored in SimilarObjectTypes
as an ElementSet
.
foreach (Element elem in elemSet)
{
Parameter param = elem.get_Parameter(paramName);
if (param != null)
{
var similar = elemparam.SimilarObjectTypes;
foreach (Element choice in similar)
{
string ChoiceName = choice.Name;
}
}
}
精彩评论