Select to view content in your preferred language

create a layer using python in ArcMap 10.4

2077
2
06-14-2016 08:12 AM
PaulHacker2
Deactivated User

How does one use python to create a layer?

I know I can click down to the personal Geodatabase.mdb and right click and do a 'create layer' but we have a huge number of maps to create and we have a large library of GDB to make into layers on maps.

I want to make a batch process to do all the work instead of getting on ArcMap 10.4 and doing them one by one.

Thanks for any help!

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

See the script example at the bottom of this thread Save To Layer File—Help | ArcGIS for Desktop

you effectively have to read the featureclasses (or whatever) ListFeatureClasses—Help | ArcGIS for Desktop

(see code example), then ship them out

on a side note GeoNet Community Structure

you keep posting in ArcGIS Earth, which is totally the wrong place .... perhaps Python​ would be better

PaulHacker2
Deactivated User

Didn't know we had a Python in GIS Developers! Thanks, I'll use that for any problems needing Python code.

0 Kudos