Update Description of Feature Class in SDE or GDB

المشرف العام

Administrator
طاقم الإدارة
I need to add a Description to a Feature Class using arcpy. The feature class lives in our enterprise geodatabase.

The Feature Class does not live in an MXD file, nor will it ever for this script's purposes.

The following code works in ArcMap when applied to a layer in the Table of Contents, however, it does not persist to the dataset within the database.

layer = arcpy.mapping.Layer("layer") layer.description = "Description of the layer" layer.save Any ideas on how to modify the description (and other property values) of Feature Classes within Geodatabases and not MXD files?

I am on ArcGIS 10.2



أكثر...
 
أعلى