ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.Parcels Namespace / ParcelTypeInfo Class
Members Example

In This Topic
    ParcelTypeInfo Class
    In This Topic
    Represents a parcel fabric.
    Object Model
    ParcelTypeInfo ClassTable ClassTable Class
    Syntax
    public class ParcelTypeInfo 
    Public Class ParcelTypeInfo 
    Remarks
    This class is used to
    • Get parcel type information
    Example
    Get parcel type feature classes from the parcel fabric dataset
    string errorMessage = await QueuedTask.Run(() =>
    {
      try
      {
        var myParcelFabricLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<ParcelLayer>().FirstOrDefault();
        //if there is no fabric in the map then bail
        if (myParcelFabricLayer == null)
          return "There is no fabric in the map.";
        string myParcelTypeName = "Tax";
        var myParcelFabricDataset = myParcelFabricLayer.GetParcelFabric();
        var typeInfo = myParcelFabricDataset.GetParcelTypeInfo();
        FeatureClass lineFCType = null;
        FeatureClass polyFCType = null;
        foreach (var info in typeInfo)
        {
          if (info.Name.ToLower() == myParcelTypeName.ToLower())
          {
            lineFCType = info.LineFeatureTable as FeatureClass;
            polyFCType = info.PolygonFeatureTable as FeatureClass;
            break;
          }
        }
      }
      catch (Exception ex)
      {
        return ex.Message;
      }
      return "";
    });
    if (!string.IsNullOrEmpty(errorMessage))
      MessageBox.Show(errorMessage, "Get Parcel Type feature classes.");
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Data.Parcels.ParcelTypeInfo

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also