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


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

Get The SchematicInMemoryDiagram Related To A Schematic Layer Snippet

Retrieve the in-memory schematic diagram related to a schematic layer. The schematic diagram needs to be loaded in memory.

[C#]
        /// <summary>
        /// Retrieve the in-memory schematic diagram related to a schematic layer 
        /// </summary>
        /// <param name="schemLayer">The ISchematicLayer the in-memory schematic diagam is related to</param>
        /// <returns>The retrieved ISchematicInMemoryDiagram</returns>
        public ESRI.ArcGIS.ISchematicInMemoryDiagram GetInMemoryDiagramFromSchematicLayer(ESRI.ArcGIS.Schematic.ISchematicLayer schemLayer)
        {
                // the schematic diagram needs to be loaded in memory
                return schemLayer.SchematicInMemoryDiagram;
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Retrieve the in-memory schematic diagram related to a schematic layer
        ''' </summary>
        ''' <param name="schemLayer">The ISchematicLayer the in-memory schematic diagam is related to</param>
        ''' <returns>The retrieved ISchematicInMemoryDiagram</returns>
        Public Function GetInMemoryDiagramFromSchematicLayer(ByVal schemLayer As ESRI.ArcGIS.Schematic.ISchematicLayer) As ESRI.ArcGIS.Schematic.ISchematicInMemoryDiagram

                ' the schematic diagram needs to be loaded in memory
                Return schemLayer.SchematicInMemoryDiagram
        End Function

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