首页 > 解决方案 > 如何以编程方式在 ArcObjects 10.3 for .net 中为表配置编辑器跟踪?

问题描述

我将 ArcObjects 用于 ArcGis 10.3 的 .net。

我没有找到任何接口来配置 GDB 数据库表的编辑器跟踪。

如何以编程方式为表配置编辑器跟踪?

我找到了接口 IDEEditorTracking 但我没有找到使用它的方法。

标签: arcgisarcobjectsarcgis-runtime-net

解决方案


         For your reference..first you need to find the dataelement(IDataElement) and then use enable  editor geoprocessing tool..

    IWorkspace pworkspace = ((IDataset)pfeaturelayer.FeatureClass).Workspace;
    IGeoProcessor pGP = new GeoProcessor();
    IGPDataType pGPDataType = new DEFeatureClassType() as IGPDataType;    
    IDataElement pDataElement = pGP.GetDataElement(pworkspace.PathName, pGPDataType);
    IDEEditorTracking editorTracking = (IDEEditorTracking)pDataElement;

    if (!editorTracking.EditorTrackingEnabled)
    {
        //now use Enable Editor Tracking geoprocessor tool
    }

推荐阅读