Tag Info

New answers tagged


Did you follow this set of best practices for multithreaded arcobjects code? Objects cannot cross thread boundaries and it appears that your code is doing so. Figure out the data source on the main UI thread and serialize the data source object to XML as recommended there.


The IDatasetContainer interface lets you move datasets between feature datasets and workspaces—both objects implement the interface. It should only be used to move datasets between feature datasets and the workspace level within a single workspace, however; it cannot be used to transfer datasets from one workspace to another. If you situation doesn't fit ...


You can set the description using the ArcPy mapping module - specifically the Layer class. The Layer class has a description property. So, changing the Layer description would look like this: mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] layer = arcpy.mapping.ListLayers(mxd, "Wetland Protection Area", df)[0] ...


The layer class in the arcpy.mapping module has the ability to read and write layer descriptions, as well as access several other properties for the layer. There are several examples in the help page which should get you going. I'm not sure how you'd get the different descriptions for all your layers, but supposing you have descriptions ready to go, you ...

Top 50 recent answers are included