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


Get The Children Schematic In-Memory Features Related To An In-Memory Schematic Features Snippet (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference

Get The Children Schematic In-Memory Features Related To An In-Memory Schematic Features Snippet

Retrieve all the schematic in-memory features that have a parent-child relation with a particular parent schematic in-memory feature

[C#]
        /// <summary>
        /// Retrieve all the schematic in-memory features that have a parent-child relation with a particular parent schematic in-memory feature
        /// </summary>
        /// <param name="schemInMemoryFeature">The parent SchematicInMemoryFeature for which you want to retrieve the children schematic in-memory features</param>
        /// <returns>The retrieved IEnumSchematicInMemoryFeature collection of children schematic features</returns>
        public ESRI.ArcGIS.Schematic.IEnumSchematicInMemoryFeature GetChildrenFromInMemoryFeature(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schemInMemoryFeature)
        {
                ESRI.ArcGIS.Schematic.ISchematicRelationController schRelCont=new ESRI.ArcGIS.Schematic.SchematicRelationController();

                return schRelCont.FindChildren(schemInMemoryFeature);
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Retrieve all the schematic in-memory features that have a parent-child relation with a particular parent schematic in-memory feature
        ''' </summary>
        ''' <param name="schemInMemoryFeature">The parent SchematicInMemoryFeature for which you want to retrieve the children schematic in-memory features</param>
        ''' <returns>The retrieved IEnumSchematicInMemoryFeature collection of children schematic features</returns>
        Public Function GetChildrenFromInMemoryFeature(ByVal schemInMemoryFeature As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature) As ESRI.ArcGIS.Schematic.IEnumSchematicInMemoryFeature

                Dim schRelCont As ESRI.ArcGIS.Schematic.ISchematicRelationController=New ESRI.ArcGIS.Schematic.SchematicRelationController()

                Return schRelCont.FindChildren(schemInMemoryFeature)
        End Function

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