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


Change An In-Memory Link Schematic Feature Extremity Node Snippet (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference

Change An In-Memory Link Schematic Feature Extremity Node Snippet

Change the extremity node of an in-memory schematic link

[C#]
        /// <summary>
        /// Change the extremity node of an in-memory schematic link
        /// </summary>
        /// <param name="schemLink">The ISchematicInMemoryFeatureLink which extremity node must be changed</param>
        /// <param name="newToNode">The new ISchematicInMemoryFeatureNode extremity node</param>
        /// <param name="newToPort">The new extremity port the schematic link must connect to</param>
        public void ChangeToNode(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLink schemLink, ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureNode newToNode, int newToPort)
        {
                schemLink.ToNode=newToNode;
                schemLink.ToPort=newToPort;
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Change the extremity node of an in-memory schematic link
        ''' </summary>
        ''' <param name="schemLink">The ISchematicInMemoryFeatureLink which extremity node must be changed</param>
        ''' <param name="NewToNode">The new ISchematicInMemoryFeatureNode extremity node</param>
        ''' <param name="NewToPort">The new extremity port the schematic link must connect to</param>
        Public Sub ChangeToNode(ByVal schemLink As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLink, ByVal NewToNode As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureNode, ByVal NewToPort As Integer)

                schemLink.ToNode=NewToNode
                schemLink.ToPort=NewToPort
        End Sub

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