Running a model inside a map template
January 06 2011 |
2 comments
Categories:
ArcGIS Methods
How can you insert an option, like a button or a keystroke, to run a small model in a map template? I need to create a soils map and label only the soils inside a property boundary and list the soil names in the legend.
Mapping Center Answer:
I am not quite sure what you are asking but I will try to answer. Let me know if I am off base.
You cannot use a model to create a map and label the features and add a legend. You can create a model to select the soils that meet a certain criteria, however (e.g., they are within a particular property boundary). This would be a model that you would add to ArcToolbox, so essentially it IS in your user interface. However, as stated above, you cannot create a model to add a legend to a map document using Model Builder. You could possibly do this with ArcObjects bout it seem to me to be overkill for what you are trying to do.
First, be sure that your model has the necessary input and output parameters. See "Creating model parameters" ( http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_model_parameters/002w0000003z000000/
You can specify how you want your output to be symbolized in your model. See "A quick tour of setting output data symbology" ( http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_setting_output_data_symbology/002w0000005v000000/
You can then make a button for your model to run by customizing the ArcMap UI. See "Adding and removing tools on menus and toolbars" ( http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Adding_and_removing_tools_on_menus_and_toolbars/002400000005000000/
Whenever your model tool is run, the output of the model tool needs to be added to the display. This is the default, but just in case, you (and your users) should know about the "Add results of geoprocessing operations to the display" (from the Geoprocessing menu, click "Geoprocessing options". See "Using geoprocessing options to control tool execution" ( http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Using_geoprocessing_options_to_control_tool_execution/00210000000q000000/
If you would like to post a comment, please login.