I want to split polygons in half, like if a building were split by its roof ridge. I've somehow managed to obtain this in model builder by doing calculations on geometry statistics but as the input data might consist of 50,000+ polygons it's clunky and slow.
There's a tool in ArcGIS Pro, Subdivide Polygons, which is far more faster and would have given the desirable output. If it would only have allowed to use attribute values as an input for Split angle but instead you have to define a fixed value, which would be 0 in the snippet below.
I'm really a beginner at python, but would there be a way to modify the parameter so that it obtains the value from the attribute table rather than using a fixed value?
import arcpy arcpy.env.workspace = r"C:/data/project.gdb" arcpy.SubdividePolygon_management( "studyarea", "subdivisions", "NUMBER_OF_EQUAL_PARTS", 10, "", "", 0, "STRIPS")