This document is archived and information here might be outdated. Recommended version. |
Retrieve a schematic diagram in a given schematic dataset from its ID
/// <summary> /// Retrieve a SchematicDiagram in a schematic folder from its ID /// </summary> /// <param name="schemFolder">The ISchematicFolder where the schematic diagram is stored</param> /// <param name="schemDiagClass">The ISchematicDiagramClass the diagram is based on</param> /// <param name="DiagramID">The schematic diagram ID</param> /// <returns>The retrieved ISchematicDiagram</returns> public ESRI.ArcGIS.Schematic.ISchematicDiagram GetSchematicDiagramFromSchematicFolderByID(ESRI.ArcGIS.Schematic.ISchematicFolder schemFolder, ESRI.ArcGIS.Schematic.ISchematicDiagramClass schemDiagClass, int DiagramID) { // cast SchematicFolder into ISchematicDiagramContainerr ESRI.ArcGIS.Schematic.ISchematicDiagramContainer schDiagramCont=(ESRI.ArcGIS.Schematic.ISchematicDiagramContainer)schemFolder; return schDiagramCont.get_SchematicDiagramByID(schemDiagClass, DiagramID); }
''' <summary> ''' Retrieve a SchematicDiagram in a schematic folder from its ID ''' </summary> ''' <param name="schemFolder">The ISchematicFolder where the schematic diagram is stored</param> ''' <param name="schemDiagClass">The ISchematicDiagramClass the diagram is based on</param> ''' <param name="DiagramID">The schematic diagram ID</param> ''' <returns>The retrieved ISchematicDiagram</returns> Public Function GetSchematicDiagramFromSchematicFolderByID(ByVal schemFolder As ESRI.ArcGIS.Schematic.ISchematicFolder, ByVal schemDiagClass As ESRI.ArcGIS.Schematic.ISchematicDiagramClass, ByVal DiagramID As Integer) As ESRI.ArcGIS.Schematic.ISchematicDiagram ' cast SchematicFolder into ISchematicDiagramContainer Dim schDiagramCont As ESRI.ArcGIS.Schematic.ISchematicDiagramContainer=TryCast(schemFolder, ESRI.ArcGIS.Schematic.ISchematicDiagramContainer) Return schDiagramCont.SchematicDiagramByID(schemDiagClass, DiagramID) End Function