Message 1 of 5
How to get SteelProxyElement geometry

Not applicable
05-28-2021
08:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I try to acces to the geometry of a SteelProxyElement.
To do this i use this portion of code
IOrderedEnumerable<Element> GetAllModelElements(Document doc)
{
List<Element> elements = new List<Element>();
FilteredElementCollector collector
= (FilteredElementCollector)new FilteredElementCollector(doc)
.WhereElementIsNotElementType();
Options options = new Options();
if (null != options)
{
options.ComputeReferences = true;
options.DetailLevel = ViewDetailLevel.Fine;
}
foreach (Element e in collector)
{
if ((e.Category!=null) &&(e.Category.Name.ToUpper()=="PLATINES"))
{
elements.Add(e);
}
if (e.get_Geometry(options) != null)
{
elements.Add(e);
}
}
return elements.OrderBy(e => e.Category.Name);
}
e.get_Geometry return null for SteelProxyElement why ?
Thanks
Fred