Automating parcel fabric creation and migration with 11 lines of Python

1024
3
07-06-2019 06:39 PM
AmirBar-Maor
Esri Regular Contributor
2 3 1,024

This is a sample that might be useful for some as reference.

Using 11 lines of Python to create and load polygons from a shape file to a new parcel fabric.

This is something that could not be done in ArcMap and can have useful use cases such as digital submission.

You can copy paste it to the python view (command line) after you tweak your source data or wrap it up as a python script tool.

ParcelSourceData= r"C:\Temp\Parcels.SHP" #source polygons
SR=arcpy.Describe(ParcelSourceData).spatialReference #retrieve the spatial reference of source data 
FGDB=arcpy.CreateFileGDB_management(r"C:/temp", "fGDB.gdb") #create a file geodatabase
FDS=arcpy.CreateFeatureDataset_management(FGDB,"FDS", SR)  #Create a feature dataset using the spatial reference
PF = arcpy.CreateParcelFabric_parcel(FDS,"ParcelFabric")   #Creating a new parcel fabric
(PF,Parcels,Lines) = arcpy.AddParcelType_parcel(PF, "Ownership")  #adding a parcel type
arcpy.AddField_management(Parcels,"RecordName", 'TEXT')    #Adding a field for the record name that is used for records creation
arcpy.management.Append(ParcelSourceData, Parcels, "NO_TEST")  #appending source data to parcel polygons
arcpy.EnableParcelTopology_parcel(PF)                      #enable parcel fabric topology
arcpy.CreateParcelRecords_parcel(Parcels, "RecordName")    #creating new parcel records
arcpy.BuildParcelFabric_parcel(PF)                         #building the parcel fabric

#ParcelFabric#ArcGISPro24#arcpy.parcels

3 Comments
About the Author
Product Engineer @ Esri. working on Parcel Fabric and ArcGIS Pro Tasks. Education: M.Sc. Geodetic Engineering, Licensed Land Surveyor, Licensed Real Estate Appraiser, System Designer, Project Manager... Free time: family, sailing, wing foiling, windsurfing, kitesurfing, diving, hiking.