public sealed class ParcelFabric : ArcGIS.Core.Data.Dataset, System.IDisposable
Public NotInheritable Class ParcelFabric Inherits ArcGIS.Core.Data.Dataset Implements System.IDisposable
public sealed class ParcelFabric : ArcGIS.Core.Data.Dataset, System.IDisposable
Public NotInheritable Class ParcelFabric Inherits ArcGIS.Core.Data.Dataset Implements System.IDisposable
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."; var myParcelFabricDataset = myParcelFabricLayer.GetParcelFabric(); } catch (Exception ex) { return ex.Message; } return ""; }); if (!string.IsNullOrEmpty(errorMessage)) MessageBox.Show(errorMessage, "Get Parcel Fabric Dataset from layer.");
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."; var myParcelFabricDataset = myParcelFabricLayer.GetParcelFabric(); var myTopology = myParcelFabricDataset.GetParcelTopology(); } catch (Exception ex) { return ex.Message; } return ""; }); if (!string.IsNullOrEmpty(errorMessage)) MessageBox.Show(errorMessage, "Get Parcel Fabric Topology.");
public static ParcelFabric GetParcelFabricFromTable(Table table) { ParcelFabric myParcelFabricDataset = null; if (table.IsControllerDatasetSupported()) { // Tables can belong to multiple controller datasets, but at most one of them will be a parcel fabric IReadOnlyList<Dataset> controllerDatasets = table.GetControllerDatasets(); foreach (Dataset controllerDataset in controllerDatasets) { if (controllerDataset is ParcelFabric) { myParcelFabricDataset = controllerDataset as ParcelFabric; } else { controllerDataset.Dispose(); } } } return myParcelFabricDataset; }
System.Object
ArcGIS.Core.CoreObjectsBase
ArcGIS.Core.Data.Dataset
ArcGIS.Core.Data.Parcels.ParcelFabric
Target Platforms: Windows 11, Windows 10, Windows 8.1