Select to view content in your preferred language

ArcGIS Pro Tasks - Save and restore toc settings

206
3
Jump to solution
07-29-2025 06:26 AM
JürgenBiendara
Regular Contributor

Hello,

I am currently working with ArcGIS Pro Tasks to design specific workflows for a customer. I would like to save the current settings in the TOC (visible, selectable, editable, snappable) at the beginning of the task so that I can restore them when the task is completed. Is there a simple solution for this?

Perhaps someone can help me with a tip, thank you.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Robert_LeClair
Esri Esteemed Contributor

One way I can see how to do this is at the beginning of the Task, add a New Step, click the Content tab, set the visibility, selectability, editing state, labeling and snapping for layers in the active map view.  Then create your other steps for your workflow.  Then add a last step, click the Content tab again and reset the items to the states that you wish.  It's saved in the Task itself.  I don't know of any other ways to do this unfortunately.

View solution in original post

0 Kudos
3 Replies
Robert_LeClair
Esri Esteemed Contributor

One way I can see how to do this is at the beginning of the Task, add a New Step, click the Content tab, set the visibility, selectability, editing state, labeling and snapping for layers in the active map view.  Then create your other steps for your workflow.  Then add a last step, click the Content tab again and reset the items to the states that you wish.  It's saved in the Task itself.  I don't know of any other ways to do this unfortunately.

0 Kudos
JürgenBiendara
Regular Contributor

Thanks for your feedback, Robert. I will now add a final step to all tasks that resets the ArcGIS Pro environment and layer settings to a defined state. Unfortunately, the disadvantage remains that I cannot reproduce the settings that the user had configured. However, I think a defined state is better than any arbitrary state.

Robert_LeClair
Esri Esteemed Contributor

You're welcome Jurgen.  Everything I was reading mentioned that it was not possible to share these settings via some type of file.  The best way I saw was as described by adding a start and end step to make those settings.  I'll be curious if others on the forum know of a better way!

0 Kudos