Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 67020

Get BoundingBoxXYZ as shown in Revit Lookup tool

$
0
0

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.

Plan.jpg

 This is the Revit Lookup tool for the Elevation View.

RevitLookup BoundingBox.JPG

The next two images show attempts at retrieving the BoundingBoxXYZ via the API.

BoundingBoxActiveView.jpg

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.

BoundingBoxElevation.jpg 

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?


Viewing all articles
Browse latest Browse all 67020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>