Skip to main content
readability
Source Link
Midavalo
  • 29.9k
  • 11
  • 51
  • 105

I'm trying to source a layer in my TOC with a new feature class. I've read countless forums, ArcGIS Resource Center, etc. With the MXD and python window open this is what I've surmised so far.

import arcpy

mxd = arcpy.mapping.MapDocumnet("CURRENT")

Using the following link, which scenario matches what I want to do most accurately?

MXD Source = r'\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\MXDS\ENCHROACHMENT MXD\0180.SA - C001-C010 - 1.0 MXD Source = - PE.mxdr'\\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\MXDS\ENCHROACHMENT MXD\0180.SA - C001-C010 - 1.0 - PE.mxd

MXD Name MXD Name = 0180.SA - C001-C010 - 1.0 - PE.mxd0180.SA - C001-C010 - 1.0 - PE.mxd

Layer Name in TOC = STRUCTURE_SITEID_180 Layer Name in TOC = STRUCTURE_SITEID_180

Layer in TOC's path = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_180 Layer in TOC's path = \\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_180

Feature Class I Want to Source to Name Feature Class I Want to Source to Name = STRUCTURE_SITEID_211STRUCTURE_SITEID_211

Feature Class I Want to Source to File Path (same as the layer I'm trying to resource) Feature Class I Want to Source to File Path (same as the layer I'm trying to resource) = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_211\\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_211

How do I finish the Python script to accomplish the task? If I can get one to work I can extrapolate. I'm using ArcMap 10.3.1ArcMap 10.3.1.

I'm trying to source a layer in my TOC with a new feature class. I've read countless forums, ArcGIS Resource Center, etc. With the MXD and python window open this is what I've surmised so far.

import arcpy

mxd = arcpy.mapping.MapDocumnet("CURRENT")

Using the following link, which scenario matches what I want to do most accurately?

MXD Source = r'\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\MXDS\ENCHROACHMENT MXD\0180.SA - C001-C010 - 1.0 - PE.mxd

MXD Name = 0180.SA - C001-C010 - 1.0 - PE.mxd

Layer Name in TOC = STRUCTURE_SITEID_180

Layer in TOC's path = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_180

Feature Class I Want to Source to Name = STRUCTURE_SITEID_211

Feature Class I Want to Source to File Path (same as the layer I'm trying to resource) = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_211

How do I finish the Python script to accomplish the task? If I can get one to work I can extrapolate. I'm using ArcMap 10.3.1.

I'm trying to source a layer in my TOC with a new feature class. I've read countless forums, ArcGIS Resource Center, etc. With the MXD and python window open this is what I've surmised so far.

import arcpy

mxd = arcpy.mapping.MapDocumnet("CURRENT")

Using the following link, which scenario matches what I want to do most accurately?

MXD Source = r'\\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\MXDS\ENCHROACHMENT MXD\0180.SA - C001-C010 - 1.0 - PE.mxd

MXD Name = 0180.SA - C001-C010 - 1.0 - PE.mxd

Layer Name in TOC = STRUCTURE_SITEID_180

Layer in TOC's path = \\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_180

Feature Class I Want to Source to Name = STRUCTURE_SITEID_211

Feature Class I Want to Source to File Path (same as the layer I'm trying to resource) = \\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_211

How do I finish the Python script to accomplish the task? If I can get one to work I can extrapolate. I'm using ArcMap 10.3.1.

edited title
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Source a Sourcing Layer in TOC to a New Feature Class using ArcPy?

added 14 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

I'm trying to source a layer in my TOC with a new feature class. I've read countless forums, ArcGIS Resource Center, etc. With the MXD and python window open this is what I've surmised so far.

import arcpy

mxd = arcpy.mapping.MapDocumnet("CURRENT")

import arcpy

mxd = arcpy.mapping.MapDocumnet("CURRENT")

Using the following link, which scenario matches what I want to do most accurately?

MXD Source = r'\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\MXDS\ENCHROACHMENT MXD\0180.SA - C001-C010 - 1.0 - PE.mxd

MXD Name = 0180.SA - C001-C010 - 1.0 - PE.mxd

Layer Name in TOC = STRUCTURE_SITEID_180

Layer in TOC's path = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_180

Feature Class I Want to Source to Name = STRUCTURE_SITEID_211

Feature Class I Want to Source to File Path (same as the layer I'm trying to resource) = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_211

How do I finish the Python script to accomplish the task? If I can get one to work I can extrapolate. I'm using ArcMap 10.3.1.

I'm trying to source a layer in my TOC with a new feature class. I've read countless forums, ArcGIS Resource Center, etc. With the MXD and python window open this is what I've surmised so far.

import arcpy

mxd = arcpy.mapping.MapDocumnet("CURRENT")

Using the following link, which scenario matches what I want to do most accurately?

MXD Source = r'\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\MXDS\ENCHROACHMENT MXD\0180.SA - C001-C010 - 1.0 - PE.mxd

MXD Name = 0180.SA - C001-C010 - 1.0 - PE.mxd

Layer Name in TOC = STRUCTURE_SITEID_180

Layer in TOC's path = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_180

Feature Class I Want to Source to Name = STRUCTURE_SITEID_211

Feature Class I Want to Source to File Path (same as the layer I'm trying to resource) = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_211

How do I finish the Python script to accomplish the task? If I can get one to work I can extrapolate. I'm using ArcMap 10.3.1.

I'm trying to source a layer in my TOC with a new feature class. I've read countless forums, ArcGIS Resource Center, etc. With the MXD and python window open this is what I've surmised so far.

import arcpy

mxd = arcpy.mapping.MapDocumnet("CURRENT")

Using the following link, which scenario matches what I want to do most accurately?

MXD Source = r'\na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\MXDS\ENCHROACHMENT MXD\0180.SA - C001-C010 - 1.0 - PE.mxd

MXD Name = 0180.SA - C001-C010 - 1.0 - PE.mxd

Layer Name in TOC = STRUCTURE_SITEID_180

Layer in TOC's path = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_180

Feature Class I Want to Source to Name = STRUCTURE_SITEID_211

Feature Class I Want to Source to File Path (same as the layer I'm trying to resource) = \na\data\telecom\projects\GIS\Proposal_Kentucky_Nextgen\02GISData\18DDP_ENG\Design_Data.gdb\STRUCTURE_SITEID_211

How do I finish the Python script to accomplish the task? If I can get one to work I can extrapolate. I'm using ArcMap 10.3.1.

edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Loading
Source Link
GIS_GOD
  • 399
  • 1
  • 13
Loading