ESRI.ArcGIS.ArcMapUI.IMxDocument mxDocument = ArcMap.Application.Document as ESRI.ArcGIS.ArcMapUI.IMxDocument; // Dynamic Cast ESRI.ArcGIS.Carto.IActiveView actView = mxDocument.ActiveView; IMap focMap = actView.FocusMap; for (int i = 0; i < focMap.LayerCount; i++) { IFeatureLayer2 actFeatLyr = focMap.get_Layer(i) as IFeatureLayer2; ITable actLyr = focMap.get_Layer(i) as ITable; IDisplayTable actDispTable = actFeatLyr as IDisplayTable; IRelQueryTable actQueryTable = actDispTable.DisplayTable as IRelQueryTable; IDisplayRelationshipClass actDispRelClass = actFeatLyr as IDisplayRelationshipClass; actDispRelClass.DisplayRelationshipClass(null, esriJoinType.esriLeftInnerJoin); } //Refreshing the view actView.Refresh(); //Refreshing the TOC ESRI.ArcGIS.ArcMapUI.IContentsView contentsView = mxDocument.CurrentContentsView; contentsView.Refresh(null);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.