Model space to paper space translation

Hi

I’m trying to extract the XY location of an element (level 0) in paperspace. The end result is to use this to drive the placement of the viewport rather than its centre location.

This has lead me down the rabbit hole of trying to understanding the relationship between model space and paper space. The geometry in a view creates one bounding box (#1). But this is different to the view’s bounding box (#2). And this in turn is different to the viewport’s bounding box (#3).

Presumably the model space bounding box needs to be scaled down somehow (possibly in feet?) but I’m not sure the relationship. Any suggestions?

Geometry in viewport.dyn (38.8 KB)
Project1.rvt (6.3 MB)

Sounds like a recipe for disaster but you could use View.GetModelToProjectionTransforms().

1 Like