Message 1 of 3

Not applicable
07-01-2019
08:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello! I am having a lot of trouble getting shared parameter values from my application I have been working on. This is the code that I have. It is retrieving the Built-In parameters from the System family but not the shared parameters that are inside of it.
ElementCategoryFilter filter = new ElementCategoryFilter(BuiltInCategory.OST_Wire); FilteredElementCollector collector = new FilteredElementCollector(doc); IList<Element> wire = collector.WherePasses(filter).ToElements(); String prompt = "The wire in the current document are:\n"; List<ElementId> lstFamilySymbolIDs = new List<ElementId>(); foreach (Element e in wire) { prompt += "\n"; prompt += e.Name + "\n"; prompt += e.Id + "\n"; lstFamilySymbolIDs.Add(e.Id); Parameter p = e.LookupParameter("Type"); prompt += GetParameterValue(p) + "\n"; Parameter p7 = e.LookupParameter("Fab - Area"); prompt += GetParameterValue(p7) + "test" + "\n"; prompt += "\n"; } TaskDialog.Show("revit", prompt);
Solved! Go to Solution.