Message 1 of 10
Parameter values combo box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys!
I am developing a grid parameter editor of model FamilyInstance elements. In my grid, I would like to mimic a drop down combo box (like the one in Revit properties editor) for those parameters that have StorageType == StorageType.ElementId. How do i know what values to populate the combo box of a specific parameter with (which ElementId's are valid for a specific parameter)?
//Pseudo code for populating my combo box with values when it gets focus.
//I need LIST_OF_VALID_VALUE_ELEMENTS(p).
Parameter p = SelectedFamilyInstanceParameter;
foreach (Element e in LIST_OF_VALID_VALUE_ELEMENTS(p) )
{
myComboBox.Items.Add(e.Name, e.Id);
}I just can't seem to find a solution for this. Any help would be greatly appreciated.
Thanks!
