AnsweredAssumed Answered

Looking for python scripts

Question asked by JRAdams on Jun 12, 2018
Latest reply on Jun 14, 2018 by jborgion

Trying to find a couple scripts... 

 

I want to use my windows task manager to run them at a given time, so I am wanting to have the parameters pre-filled with inputs and outputs. Would like to generate token, but other I've set up were fine without. 

 

 #1) Want to pull a feature service from AGOL, includes point layer and three related tables, all with attributes enabled. I would ideally like all of this to remain intact. If not possible then a script to download replicas would suffice. The one I found throws error-  ModuleNotFoundError: No module named 'urllib2' 

 

#2) A script to export data to an access .mdb 

--If one can be made to maintain relationships & attachments and then imported into access .mdb as such, that would be brilliant, but not thinking this one is possible. So if I could just get something that will overwrite the existing table through an export, I'd be super grateful! 

 

I've gotten so far as downloading multiple at once, but it didn't maintain attachments. I was also able to append the .mdb, but it created loads of duplicates, and a simple CopyFeatures was not working for me. 

 

Tried working with the Download Attachments created by Jake Skinner, I believe, but do not know enough script to modify it to allow both features and tables to be grabbed, along with pre-filled parameters. 

 

I am using ArcMap 10.6 and ArcPro 2.1.3, although .mdb does not seem to connect in Pro

 

Thank you for any and all assistance!! 

Outcomes