This document is archived and information here might be outdated.  Recommended version.


Get An In-Memory Schematic Feature Geometry Snippet (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference

Get An In-Memory Schematic Feature Geometry Snippet

Retrieve the geometry for an in-memory schematic feature

[C#]
        /// <summary>
        /// Retrieve the geometry for an in-memory schematic feature
        /// </summary>
        /// <param name="schemFeature">The ISchematicInMemoryFeature for which you want to retrieve the geometry</param>
        /// <returns>The IGeometry</returns>
        public void GetFeatureGeometry(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schemFeature)
        {
                return (ESRI.ArcGIS.Geometry.IGeometry)schemFeature.ShapeCopy;
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Retrieve the geometry for an in-memory schematic feature
        ''' </summary>
        ''' <param name="schemFeature">The ISchematicInMemoryFeature for which you want to retrieve the geometry</param>
        ''' <returns>The IGeometry</returns>
        Public Function GetFeatureGeometry(ByVal schemFeature As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature) As ESRI.ArcGIS.Geometry.IGeometry

                Return TryCast(schemFeature.ShapeCopy, ESRI.ArcGIS.Geometry.IGeometry)
        End Function

Additional Requirements
  • The code in this document requires the following References added to the Visual Studio project:
  • ESRI.ArcGIS.Geometry
  • ESRI.ArcGIS.Schematic