ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Using AML with script tools

Available with Advanced license.

It's possible to use ARC Macro Language (AML) files in ArcGIS Desktop by creating a new geoprocessing script tool. If you have an ArcGIS Desktop Advanced license and ArcInfo Workstation installed, you can add a custom script tool that references an AML.

There is an initial step that must be completed before an AML file can be set up as a script tool. The system must be able to open ArcInfo Workstation and run the &run command, such as arc: &run MyAml.aml. Esri provides a tool for updating the system registry. After the system registry has been updated, add a new script tool using the Add Script Tool dialog wizard. The script tool can be used like any other geoprocessing tool.

Note:

Any limitations in ArcInfo Workstation or Workstation modules, such as GRID or TIN, will still be present when running an AML file as a script tool.

Learn more about Python equivalents to AML functions

  1. Update the system registry:
    1. Browse to ArcToolbox\Scripts subfolder under your ArcGIS install.
    2. Double-click the file RegisterAmlAsExecutable.reg.
    3. Click Yes to add this information to the registry.
  2. Create a script tool that runs an AML file:
    1. From within ArcGIS, right-click a folder or geodatabase and click New > Toolbox.
    2. Right-click the toolbox created in the previous step, click Add > Script. This starts the Add Script wizard.
    3. Name and describe the new script tool and click Next.
    4. Browse to the location of the AML file and click Next.
    5. Set up the input and output parameters and options and click Finish.
  3. Note:

    AML files that are run as script tools must begin with an Arc: prompt command. It is possible to run commands from other prompts within ArcInfo Workstation, such as GRID, TABLES, ArcPlot, ArcEdit, and so on, but the AML file must start at the Arc: prompt. For example, if the AML file only runs in GRID, be sure to add a line in the AML file that starts GRID before running the rest of the program.

Related topics

  • Python equivalents to AML functions
  • Python equivalents to AML directives

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal