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

398
2
05-17-2023 02:45 PM
MeganEngel
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

MeganEngel_0-1684359709806.png

MeganEngel_1-1684359787182.png

 

Thanks!

0 Kudos
2 Replies
RhettZufelt
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.

RhettZufelt_0-1684368220380.png

 

R_

0 Kudos
MeganEngel
Occasional Contributor II

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

MeganEngel_0-1684417235433.png

 

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

0 Kudos