ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / ChangeParcelType Method / ChangeParcelType(ParcelLayer,SelectionSet,Layer,Layer) Method
The parcel fabric layer that has the parcels to be changed.
The source layers and feature OIDs of parcel polygon features.
The parcel layer type to change the selected parcel polygon features into.
Line layer that the editor listens to for database changes. This allows the use of the parcel edit token to return edit operation information on feature changes.
Example

In This Topic
    ChangeParcelType(ParcelLayer,SelectionSet,Layer,Layer) Method
    In This Topic
    Change the parcel type of selected parcels.
    Syntax

    Parameters

    parcelLayer
    The parcel fabric layer that has the parcels to be changed.
    sourceFeatures
    The source layers and feature OIDs of parcel polygon features.
    destinationPolygonLayer
    The parcel layer type to change the selected parcel polygon features into.
    destinationLineLayer
    Line layer that the editor listens to for database changes. This allows the use of the parcel edit token to return edit operation information on feature changes.
    Exceptions
    ExceptionDescription
    ParcelLayer, sourceFeatures and destinationPolygonLayer cannot be null.
    Insufficient license. This method requires a standard license.
    Example
    Change parcel type
     //add polygon layers and the feature ids to change the type on to a new Dictionary
     var ids = new List<long>(sourcePolygonL.GetSelection().GetObjectIDs());
    var sourceFeatures = new Dictionary<MapMember, List<long>>();
    sourceFeatures.Add(sourcePolygonL, ids);
    try
    {
      var editOper = new EditOperation()
      {
        Name = "Change Parcel Type",
        ProgressMessage = "Change Parcel Type...",
        ShowModalMessageAfterFailure = true,
        SelectNewFeatures = true,
        SelectModifiedFeatures = false
      };
      editOper.ChangeParcelType(myParcelFabricLayer, SelectionSet.FromDictionary(sourceFeatures), targetFeatLyr);
      if (!editOper.Execute())
        return editOper.ErrorMessage;
    }
    catch (Exception ex)
    {
      return ex.Message;
    }
    return "";
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also