Esri / military-tools-geoprocessing-toolbox

military-tools-geoprocessing-toolbox is a collection of models, scripts, and tools for use in ArcGIS for Desktop and ArcGIS Pro. This toolbox is one component that is a part of Military Tools.
Apache License 2.0
33 stars 14 forks source link

Gridded Reference Graphic toolbox not loading #393

Closed ardrain closed 5 years ago

ardrain commented 5 years ago

Expected Behavior

Should be able to add the Gridded Referenc Graphic toolbox through Add Toolbox with no issues.

Current Behavior

When going to Add Toolbox, selecting Gridded Reference Graphic.pyt, it is unable to load.

image

image

Possible Solution

In the GRGTools.py script, replacing lines 555-567 with:

layerFile = "NumberedStructures.lyr" if (Utilities.GetPlatform() == Utilities.PLATFORM_PRO): layerFile = "NumberedStructures.lyrx" # Use this one for Pro so labeling works

    output_features.symbology = os.path.join(os.path.dirname(os.path.dirname(__file__)),
                                             "layers", layerFile)

    return [input_area_features,
            input_number_features,
            field_to_number,
            output_features]

Steps to Reproduce (for bugs)

1.Download GRG from http://solutions.arcgis.com/defense/help/gridded-reference-graphic/

  1. Unzip the folder in a location on your computer.
  2. Open a new ArcGIS Pro map project
  3. In Catalog, Add Toolbox then go to the Gridded Reference Graphic.pyt inside GriddedRegerenceGraphic -> ArcGIS Desktop

Context

Can't use the GRG tool without being able to load it.

Your Environment

GriddedReferenceGraphic version August 2018. ArcGIS Pro 2.2.4

dfoll commented 5 years ago

This should be fixed with this updated download @ardrain let me know if that works out for you