Hi Alan,
Try this:
$mb{MapperInfo(LayoutItemInfo(CurContext(1), "Map-1", 5), 33)}
The "33" corresponds to the following MapperInfo attibute:
Define MAPPER_INFO_CARTO_SCALE_EXPR 33
For a bit more explanation, here's a quick breakdown of the above statement:
CurrContext() is a special statement to be used with Smart Text statements.
The "1" will get you the current layout window ID.
Define CONTEXT_WINDOWID 1
LayoutItemInfo() will get you the map frame window ID for the frame that is named "Map-1".
Define LAYOUT_ITEM_INFO_WIN 5
Once you have a map window ID, you can use it in MapperInfo().
And the $mb() is the syntax for Smart Text.
This looks complicated, but it is really just a bunch of nested calls.
Hope this helps.
------------------------------
Alicia Levesque
Pitney Bowes Software
------------------------------
Original Message:
Sent: 01-31-2020 06:34
From: Alan Leach
Subject: Scale Bar layout
Is there a way in which you can show the Cartographic Scale on a layout without the actual scalebar being displayed? I wondered if there was a smarttextalias that I could add to the xml to be able to bring this out in isolation of the scalebar.
------------------------------
Alan Leach
Suffolk County Council
------------------------------