PROBLEM
Note: The content in this article pertains to ArcGIS versions 8.x only. Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools.
When printing or exporting a map in ArcMap with a rotated data frame, some polygon features may not appear on the output.
This is a known issue with geometrically complex features.
As a work-around, use the steps below to simplify complex features. Make backup copies of all data before running any code samples.
Note: Code in the Project's ThisDocument code module will only run in the current map document. If you want to store the code in all your map documents, open the Normal.mxt ThisDocument code module instead.
Code: Option Explicit '******************************************************************** 'This sub simplifies all of the selected features in a 'given feature class. An editing session must be started before use. '******************************************************************** Public Sub SimplifyFeature() Dim pID As New UID, pEditor As IEditor Dim pApp As IApplication, pTopoOp2 As ITopologicalOperator2 Dim pEnumFeat As IEnumFeature, pFeature As IFeature Dim pGeometry As IGeometry pID = "esriCore.editor" Set pApp = Application Set pEditor = pApp.FindExtensionByCLSID(pID) If Not pEditor.SelectionCount > 0 Then MsgBox "Select one polygon" Exit Sub End If If pEditor.EditState = esriStateNotEditing Then MsgBox "Please start editing" Exit Sub End If pEditor.StartOperation Set pEnumFeat = pEditor.EditSelection Set pFeature = pEnumFeat.Next While Not pFeature Is Nothing If pFeature.Shape.GeometryType = esriGeometryPolygon Then Set pTopoOp2 = pFeature.ShapeCopy pTopoOp2.IsKnownSimple = False 'SET KNOWSIMPLE to False pTopoOp2.Simplify 'SIMPLIFY Set pFeature.Shape = pTopoOp2 pFeature.Store End If Set pFeature = pEnumFeat.Next Wend pEditor.StopOperation "Simplify Features" End Sub
Get help from ArcGIS experts
Download the Esri Support App