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);
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.