ArcGIS Pro 2.3 - How to use inline variable in processes labels?

570
1
03-04-2019 06:19 AM
VincentLaunstorfer
Occasional Contributor III

Hi,

In ModelBuilder, I make good use of inline variable to parse and build feature class names. However, I'd like to go further and use inline variables in processes labels.

I mean any time I run a model with a Add to Display checked on certain processes, their label names will be used to add the layers in the current Maps. However, once you run the model several times with different parameters, the layers in the table of content have similar names and it is confusing. Is it possible to use inline variable in processes label?

Thanks

0 Kudos
1 Reply
curtvprice
MVP Esteemed Contributor

This is not possible as the output name is set at validation, not at run time. The only way I see to name the output dynamically would be to create a layer within a Calculate Value function and add it to the map using the custom name using arcpy.mp functions.  One of those situations where Model Builder hits its limit and you may want to think about Python scripting if you really need this functionality.

0 Kudos