//ElementId is type
//selectionList.SelectedItem is a list of string vals and then get current item. Without ToString() its an object.
string curItem = selectionList.SelectedItem.ToString();
ElementId curItemId = (ElementId)Enum.Parse(typeof(ElementId), curItem);
//curItemId error: type provided must be Enum. Parameter Name: Enum Type.
Autodesk.Revit.DB.Color overrideColor = new Autodesk.Revit.DB.Color(52, 235, 85);
updateSequenceInOrderedSelect.OverrideColour(uiapp, curItemId, overrideColor, false);
//ElementId is type
//selectionList.SelectedItem is a list of string vals and then get current item. Without ToString() its an object.
string curItem = selectionList.SelectedItem.ToString();
ElementId curItemId = (ElementId)Enum.Parse(typeof(ElementId), curItem);
//curItemId error: type provided must be Enum. Parameter Name: Enum Type.
Autodesk.Revit.DB.Color overrideColor = new Autodesk.Revit.DB.Color(52, 235, 85);
updateSequenceInOrderedSelect.OverrideColour(uiapp, curItemId, overrideColor, false);