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.
Solved! Go to Solution.
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.
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.
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.
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!