HOW TO

Use Icon Manager icons as marker symbols

Last Published: April 25, 2020

Summary

You can use this Avenue script to create an ArcView palette file containing the icon from the Icon Manager.

Procedure



  1. Open a new script window.

    A. Activate the Project window.
    B. Click the Scripts icon.
    C. Click New.

  2. Paste this script into the script window:

    Code:
    '-- Script: "iconpal.ave"

    '-- This script loads the contents of the Icon Manager
    '-- into a new ArcView palette file.

    '-- Get the list of icons from the Icon Manager
    l = IconMgr.GetIcons

    '-- Make an empty symbol list to be populated later
    out = SymbolList.Make

    '-- Make a symbol for each icon in the Icon Manager

    '-- and add each to the new Symbol List
    for each i in l
    s = BasicMarker.Make
    s.SetStyle( #BASICMARKER_STYLE_ICON )
    s.SetIcon( i )
    out.Add( s )
    end

    '-- Create a new palette file, change the path as desired
    o = ODB.Make( "C:\myicons.avp".AsFileName )

    '-- Write the symbol list into the palette file
    o.Add( out )

    '-- Commit the file
    o.commit

    '-- End of script "iconpal.ave"

  3. Compile and run the script.

    A. Click the Compile button.
    [O-Image] Script compile button

    B. Click the Run button.
    [O-Image] Run compiled script button


    The script will create the C:\myicons.avp file.
  4. Use the Palette Manager to load this new marker palette file into your Marker Palette.
    A. Select 'Show Symbol Window' from the Window menu.
    B. Click the Palette Manager button on the far right of the window.
    C. Click the Load button and navigate to the ArcView Palette file (*.avp).
    D. Select the palette file and click OK.

    Note:
    Click the Make Default button if you want the palette file symbols to be available the next time you start ArcView.


    [O-Image] Load a palette file

Article ID:000003818

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic