Andy,I am sorry that I came a little late on this one. You can treat any layout object a regular objects and get all the info you want with objectinfo for examplefirstly, there was no way of querying the layout for details on particular fram objects, namely my map window. But i could use MapperInfo to retrieve some scale value from the map window. The trick is to make the map window and the map frame in theHere is a snippet of mb code I use to get the "exact" scale in a layout. The layout must be frontwindow and a frame with a map selected.framewid=objectgeography(selection.obj,obj_geo_maxx) - objectgeography(selection.obj,obj_geo_minx)
mapzoo=mapperinfo(objectinfo(selection.obj,obj_info_framewin), mapper_info_zoom)
scale=mapzoo/framewid
You have of course to set up layout units and distance units before, so that scale means something.
I hope that this a at least partial answer to your query.
Jacques Paris
============================================================
e-mail [EMAIL PROTECTED]
alternate [EMAIL PROTECTED]gis activity (MapInfo mainly)
http://www.total.net/~rparis/gisproducts.htm
============================================================
- MI SUM: VB: finding layout scale Andy
- Jacques Paris
