c# - How to get all parameter choices in Revit? -
there element's parameter has 5 choices (combobox's style). know how current selected one, there way retrieve 4 other choices?
they stored in similarobjecttypes
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; } } }
Comments
Post a Comment