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


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

Change An In-Memory Link Schematic Feature Origin Node Snippet

Change the origin node of an in-memory schematic link

[C#]
        /// <summary>
        /// Change the origin node of an in-memory schematic link
        /// </summary>
        /// <param name="schemLink">The ISchematicInMemoryFeatureLink which origin node must be changed</param>
        /// <param name="newFromNode">The new ISchematicInMemoryFeatureNode origin node</param>
        /// <param name="newFromPort">The new origin port the schematic link must connect to</param>
        public void ChangeFromNode(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLink schemLink, ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureNode newFromNode, int newFromPort)
        {
                schemLink.FromNode=newFromNode;
                schemLink.FromPort=newFromPort;
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Change the origin node of an in-memory schematic link
        ''' </summary>
        ''' <param name="schemLink">The ISchematicInMemoryFeatureLink which origin node must be changed</param>
        ''' <param name="NewFromNode">The new ISchematicInMemoryFeatureNode origin node</param>
        ''' <param name="NewFromPort">The new origin port the schematic link must connect to</param>
        Public Sub ChangeFromNode(ByVal schemLink As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLink, ByVal NewFromNode As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureNode, ByVal NewFromPort As Integer)

                schemLink.FromNode=NewFromNode
                schemLink.FromPort=NewFromPort
        End Sub

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