Select to view content in your preferred language

ArcGIS Pro 3.1.5: The "add to display" option has no effect on the output of the "Calculate Field" tool in model builder,

274
2
08-01-2024 11:49 PM
JamalNUMAN
Legendary Contributor

ArcGIS Pro 3.1.5: The "add to display" option has no effect on the output of the "Calculate Field" tool in model builder,

I observed that whether the "add to display" option is selected or unselected for the output of the "Calculate Field" tool in model builder, the corresponding output layer doesn’t respond accordingly, causing confusion.

In contrast, the "add to display" option works as expected for the output of the "Copy Features" tool.

What could be the best practice for this?

 

 

Clip_1164.jpgClip_1165.jpgClip_1166.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
2 Replies
MarcoBoeringa
MVP Regular Contributor

Some tools like Calculate Field do not actually create a new dataset as output, but just modify the existing dataset. I think this may be the reason the "Add To Display" option is not working, as the modified dataset may already have been added to the TOC in the previous step.

You could use an extra "Make Feature Layer" tool step in the model just after the "Calculate Field" tool, and add the output of that instead.

JamalNUMAN
Legendary Contributor

There is a case where the “add to display” option works for the output of the “Calculate Field” tool, but this occurs only if the output of the “Copy Features” tool is not added to the display. Therefore, I don’t see any reason why the “add to display” option for the output of the “Calculate Field” tool should behave differently from other outputs, as it should display and hide the layer consistently.

 

Clip_1170.jpgClip_1171.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos