Is there a way to configure the python script tool properties to use a Living Atlas layer by deafult?

05-17-2023 02:45 PM
Occasional Contributor II

I am working on a python script and am referencing a living atlas layer for FEMA flood hazard data.  The script works great, as along as add the FEMA Flood Hazard data from living atlas into my map, then into my tool.  However, I would really like this script to work with the FEMA layer referenced as the default.  I tried this in the python script itself with the service URL, but was unsuccessful. 

My alternative option was to use it in the tool properties dialog. I am able to add it as a default, however when I open the tool, I am given the red X. Am I missing something, or is there a work around to reference a living atlas layer in the python script itself, or use it as a parameter's default?


Screenshots below





0 Kudos
2 Replies
MVP Frequent Contributor

Suspect you would just need to put the actual path to that data in there instead of the Name it shows when you add it to the map.

Not really able to test, but you might try the URL itself.




0 Kudos
Occasional Contributor II

I tired this and received a "not supported" error.  



I may just need it added to the map, which isn't a big deal.  Thanks for the comment!

0 Kudos