Select to view content in your preferred language

Place a Layer from a Geodatabase onto a Map (unopened) - Python code

2726
11
Jump to solution
09-19-2022 09:32 PM
Anthony_R_McKay
Regular Contributor

A Python project - A river flow analysis - I've generated my vector polyline object for the rivers (four classifications) - how do I move this into a map?

This fc is saved in the gdb - a map already exists.

I want to use Python to add some symbology, but the code I'm using needs the layer to be in a map.

What I need to know is the Python code to send a layer to an existing map from the gdb without opening ArcGIS Pro and doing it manually.

I'd also like to know how to change the line thickness symbology with Python eventually.

Any help would be appreciated.

 

0 Kudos
11 Replies
Anthony_R_McKay
Regular Contributor

Solved - but I had to create a lyrx Layer File and move the layer to the map from there - but the result is what I wanted - thanks to Dan for pointing me in the right direction.

Capture2.JPG

0 Kudos
DanPatterson
MVP Esteemed Contributor

glad something I suggested work


... sort of retired...
0 Kudos