This caused me a fair bit of heartburn, and I think I correctly reverse engineered Revit; but I’m hoping someone can confirm who knows the coding better, is there a node or code tool intended to do this? For an elevation view, the view crop bounding box coordinates are specific that view, the below solution is what I found to translate those values to model space to output a surface that reflects the view boundary.
The View.CropBox property is listed in the Revit API Docs: The X direction of the box is right on screen; Y is up; and Z is towards the user. The crop box Z value of a plan view is not meaningful.
However, I couldn’t find any documents how those coordinate relate to model space. After extracting points and tracing them in Revit, this is my understanding:
- View crop X coordinates are a distance from the View Origin along a vector 90° counter-clockwise in plan from the View Direction.
- View crop Y coordinates are set a height from the Z coordinates of the View Origin.
- View crop Z coordinates are the view depth from the view plan (so along the View Direction vector). I disregarded this value in the below graph as it wasn’t needed for my process.
I used the below nodes to do the translation. I’d be grateful if anyone knew a simpler way or if this is the correct strategy to find an elevations view crop in model space.
Thank you and hope this also helps any others trying to understand this issue.
Trevor
Transpose ViewCrop to Model Points.dyn (58.4 KB)


