From d355e064d876e1503b1e997ba80c0554f06b4f27 Mon Sep 17 00:00:00 2001 From: Shaun Walbridge Date: Fri, 28 Feb 2014 02:37:30 -0500 Subject: [PATCH] Add output to map for the full model run. --- Install/toolbox/scripts/btm_model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Install/toolbox/scripts/btm_model.py b/Install/toolbox/scripts/btm_model.py index 7c99aca..d2e9b2a 100644 --- a/Install/toolbox/scripts/btm_model.py +++ b/Install/toolbox/scripts/btm_model.py @@ -68,9 +68,12 @@ def main(out_workspace, input_bathymetry, broad_bpi_inner_radius, slope.main(input_bathymetry, slope_rast) # Process: Zone Classification Builder + outputs_base = arcpy.env.addOutputsToMap + arcpy.env.addOutputsToMap = True utils.msg("Classifying Zones...") classify.main(classification_dict, broad_std, fine_std, slope_rast, \ input_bathymetry, output_zones) + arcpy.env.addOutputsToMap = outputs_base except Exception as e: # Print error message if an error occurs