I am creating plugin for Revit 2019 and want to get all the parameters of Wall Category. I have filtered the walls and then I am accessing parameters of wall. But I am not getting the parameters like "Material: Name, Material: Area, Material: Volume" etc
I have tried the following code
ElementFilter wall = new ElementCategoryFilter(BuiltInCategory.OST_Walls);
ICollection<Element> walls = new
FilteredElementCollector(doc).WherePasses(wall).ToElements();
string prompt = "Parameters";
foreach (Element e in walls)
{
ParameterSet pSet = e.Parameters;
foreach (Parameter p in pSet)
{
prompt += (p.Definition as
InternalDefinition).BuiltInParameter.ToString();
prompt += Environment.NewLine;
}
break;
}
}
I have also tried the following method:
IList<Parameter> orderedParameters = e.GetOrderedParameters();
And also this:
ParameterMap parameterMap = e.ParametersMap;
I want to get all parameters including schedule and take off parameters.
I am not getting the highlighted parameters.