ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinEditor Class / StopEditing Method
Indicates whether edits should be committed to disk.

If saveEdits is false, the TIN will be returned to the state previous to this edit session. All edits will be undone.

If saveEdits is true, edits from this session will be committed to disk. The TIN must already exist on disk before using this option or else an exception is thrown, and all edits are lost. If the TIN is new and has yet to be saved to disk, Use SaveAs first, then call this method.


In This Topic
    StopEditing Method
    In This Topic
    Terminates edit mode. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public bool StopEditing( 
       bool saveEdits
    )
    Public Function StopEditing( _
       ByVal saveEdits As Boolean _
    ) As Boolean

    Parameters

    saveEdits
    Indicates whether edits should be committed to disk.

    If saveEdits is false, the TIN will be returned to the state previous to this edit session. All edits will be undone.

    If saveEdits is true, edits from this session will be committed to disk. The TIN must already exist on disk before using this option or else an exception is thrown, and all edits are lost. If the TIN is new and has yet to be saved to disk, Use SaveAs first, then call this method.

    Return Value

    Returns true if the method succeeds and false otherwise.
    Exceptions
    ExceptionDescription
    This method must be called on the MCT. Use QueuedTask.Run.
    The editor is not in edit mode.
    The edits can't be saved because the tin doesn't exist on disk or is invalid.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also