I am working on getting the placement point of an Elevation View. I am trying to get the same BoundingBoxXYZ that the Revit Lookup tool displays when the Elevation is inspected. The Images below illustrate what I am finding.
This is the basic testing setup. 10'x10' walls, with the lower left inside corner at XYZ 0, 0, 100'. The Center of the green crossing model lines is XYZ 5', 5', 100'. The elevation was placed as close as I could to that intersection. The green box around the elevation indicator matches to the BoundingBoxXYZ of what the Revit Lookup tool reports.
This is the Revit Lookup tool for the Elevation View.
The next two images show attempts at retrieving the BoundingBoxXYZ via the API.
boundingBox1 is null, attempted to get BoundingBoxXYZ from the ActiveView. This is being run via an updater at time of creation, and the active view is the plan view it is being created in.
This shows the BoundingBoxXYZ of the elevation from the elevation. This BoundingBoxXYZ is also the same as the CropBox property of the elevation. This Doesn't match the BoundingBoxXYZ reported via Revit Lookup.
So, how can I retrieve the same BoundingBoxXYZ that the Revit Lookup tool retrieves?