Working with progressor | R Documentation |
Geoprocessing tools have a progressor, which includes both a progress
label and a progress bar. The default progressor continuously moves back
and forth to indicate the script is running. Using
arc.progress_label
and arc.progress_pos
allows fine control over the script progress. Updating the progressor
isn't necessary, but is useful in situations where solely outputting messages
to the dialog is insufficient to communicate script progress.
arc.progress_label(label)
arc.progress_pos(pos = -1)
label |
Progress Label |
pos |
Progress position (in percent) |
Using arc.progress_label
allows control over the label that is
displayed at the top of the running script. For example, it might be used
to display the current step of the analysis taking place.
Using arc.progress_pos
allows control over the progrssor position
displayed at the top of the running script. The position is an integer percentage,
0 to 100, that the progress bar should be set to, with 100 indicating
the script has completed (100%).
Setting the position to -1 resets the progressor to the default progressor, which continuously moves to indicate the script is running.
Understanding the progressor in script tools
Currently only functions in ArcGIS Pro, and has no effect in ArcGIS Desktop.
This function is only available from within an ArcGIS session, and has no effect when run from the command line or in background geoprocessing.
arc.progress_pos
,
"Progress Messages" example Geoprocessing script
## Not run:
arc.progress_label("Calculating bootstrap samples...")
arc.progress_pos(55)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.