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


Get The SchematicDiagram Related To A Schematic Layer Snippet (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference

Get The SchematicDiagram Related To A Schematic Layer Snippet

Retrieve the schematic diagram related to a schematic layer

[C#]
        /// <summary>
        /// Retrieve the schematic diagram related to a schematic layer 
        /// </summary>
        /// <param name="schemLayer">The ISchematicLayer the schematic diagam is related to</param>
        /// <returns>The retrieved ISchematicDiagram</returns>
        public ESRI.ArcGIS.ISchematicDiagram GetDiagramFromSchematicLayer(ESRI.ArcGIS.Schematic.ISchematicLayer schemLayer)
        {
                return schemLayer.SchematicDiagram;
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Retrieve the schematic diagram related to a schematic layer
        ''' </summary>
        ''' <param name="schemLayer">The ISchematicLayer the schematic diagam is related to</param>
        ''' <returns>The retrieved ISchematicDiagram</returns>
        Public Function GetDiagramFromSchematicLayer(ByVal schemLayer As ESRI.ArcGIS.Schematic.ISchematicLayer) As ESRI.ArcGIS.Schematic.ISchematicDiagram

                Return schemLayer.SchematicDiagram
        End Function

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