HOW TO
This article contains an Avenue script that creates a point theme legend using icons, found in the Icon Manager, as markers symbols.
Code:
'-- Script for accessing the icons from ArcView's Icon Manager
'
'-- The following line identifies the icon in the Icon Manager
'-- that will be returned. In this case the 22nd icon in the list.
'-- Change this number to the icon you would like to use to
'-- symbolize your theme.
anIcon = IconMgr.GetIcons.Get(21)
aSym = BasicMarker.Make
aSym.SetStyle(#BASICMARKER_STYLE_ICON)
aSym.SetIcon(anIcon)
theView = av.getactivedoc
theTheme = theView.getactivethemes.get(0)
theLegend = theTheme.GetLegend
theSymList = theLegend.GetSymbols
theSymList.Set(0, asym)
theTheme.UpdateLegend
theTheme.InvalidateLegend
Article ID:000003950
Get help from ArcGIS experts
Download the Esri Support App