ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinEditor Class / DeleteNode Method
The index of the node. It cannot be a super node. Node indices start at 1. The first four nodes are super nodes, so data nodes start with index 5.
Example

In This Topic
    DeleteNode Method
    In This Topic
    Deletes the specified node. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub DeleteNode( _
       ByVal index As Integer _
    ) 
    public void DeleteNode( 
       int index
    )

    Parameters

    index
    The index of the node. It cannot be a super node. Node indices start at 1. The first four nodes are super nodes, so data nodes start with index 5.
    Exceptions
    ExceptionDescription
    This method must be called on the MCT. Use QueuedTask.Run.
    Invalid operation on a super node.
    The editor is not in edit mode.
    Example
    Delete node
    {
      // Delete node by index 
      tinEditor.DeleteNode(7);
    
      // Node indices start at 1.
      try
      {
        tinEditor.DeleteNode(0);
      }
      catch (ArgumentException)
      {
        // Handle the exception
      }
    
      // Can't delete a super node (indices 1 - 4)
      try
      {
        tinEditor.DeleteNode(2);
      }
      catch (TinException)
      {
        // Handle the exception
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.5 or higher.
    See Also