How can I get the insertion point of elements in Legend?

I have dragged different kinds of elements into the Legend. Some solids and surfaces are detected, how can I get the exact insertion points of the element in Legend?

Hi @Annie

I don’t think it is possible to get Elements location from Legend view. It is not exposed in Revit API.

@Annie However you can extract the Solid.Centroid using Geometry approach.

1 Like

Thanks Kulkul, I have tried the second approach too. But how about for those surfaces detected? Can I get the center point of the surfaces?

Yes you can get center point of surface below is an example using “SurfacePointAtParameter”.