Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a plugin that batch processes global settings. I am facing a problem: I can't get values for "Group parameter under": Not all values are included in this list.
What am I doing wrong?
static public List<string> AddingGroupingOptionsToDictionary(Document _doc)
{
List<string> parameterGroupNames = new List<string>();
FilteredElementCollector collector = new FilteredElementCollector(_doc)
.WhereElementIsNotElementType();
foreach (Element elem in collector)
{
foreach (Parameter param in elem.Parameters)
{
BuiltInParameterGroup group = param.Definition.ParameterGroup;
string groupName = LabelUtils.GetLabelFor(group);
if (!parameterGroupNames.Contains(groupName))
{
parameterGroupNames.Add(groupName);
}
}
}
return parameterGroupNames;
}
Thanks in advance for your reply!
Solved! Go to Solution.