new FilteredElementCollector(doc)
.WhereElementIsNotElementType()
.Where(w => w?.Category is { })
.ForEach(element =>
{
Options options = new Options();
options.ComputeReferences = true;
options.IncludeNonVisibleObjects = true;
if (element.Document.ActiveView != null)
options.View = element.Document.ActiveView;
else
options.DetailLevel = ViewDetailLevel.Fine;
var geoElem = element.get_Geometry(options); // выдает null
}