Select to view content in your preferred language

Geoprocessing Tool - Messages

194
1
03-03-2025 02:54 PM
ModernElectric
Frequent Contributor

I am building a series of geoprocessing tools via ArcGIS Model Builder and many of them are using the Get Counts tools.

After I run the tool, and pull up the messages, it shows Get Counts = (returned number).

What I want to be able to do is replace the Get Counts with a custom message, lets say "Number of Services" or "Number of Transformers".

The reason for this is I need it to be clear and not have to remember which of the individual 7 Get Counts tools in the model are pulling which data. 

Easy way to accomplish this?

0 Kudos
1 Reply
MErikReedAugusta
MVP Regular Contributor

If you're working with at least ArcPro 3.4, you should (hopefully) be able to use the new Custom Message tool to output what you're looking for.  Get Count doesn't technically return a number, so there's a small possibility you'll need to do some troubleshooting, but hopefully ESRI already coded that into the tool, if they were thinking ahead.

If you're not yet on 3.4, there're a couple scripts in the discussion here that might be of use: https://community.esri.com/t5/geoprocessing-questions/message-script-tool-for-modelbuilder/td-p/6378...

------------------------------
M Reed
"The pessimist may be right oftener than the optimist, but the optimist has more fun, and neither can stop the march of events anyhow." — Lazarus Long, in Time Enough for Love, by Robert A. Heinlein