Hi!
I'm trying to access the postion of a viewport in Marionette.
We are working with georeferenced plans, and I want to annotate the "real-world" position, and implement a custom Grid for our site.
Ths grid is predefined as starting at coordinate X,Y with 0,0, and goes up by 1 every 50m.
All I need is one of the corner-coordinates of the viewport boundary, from there the math and positioning is simple.
The following is just what I tried so far:
But accessing "Viewport x Position" (Selector 1024, 1025 for y) results in numbers I dont understand. They seem to align with neither the location of the viewport boundary, nor the position on the Layout Sheet.
They seem, however, to correspond to the position on the page, as the numbers change when i move the viewport without changing the Boundary (See "Viewport Y Position" in the Screenshots.
In case this is a problem with my marionette-network, i attached the file. The Marionette-Wrapper is named "Ansichtsbereich_Infos", has to be converted to a menu command, and executed on a layout layer.
Thanks for any helpfull input!
marionette_Sandbox.vwx