This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Get The SchematicInMemoryDiagram Related To A Schematic Layer Snippet (ArcObjects .NET 10.4 SDK) |
Retrieve the in-memory schematic diagram related to a schematic layer. The schematic diagram needs to be loaded in memory.
/// <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; }
''' <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