I have a polygon feature class and I need to rotate each feature around it's own centroid 13.5°. The Rotate tool in Modify Features can only rotate features around a common centroid. How about Python or Arcade?
Hi Don,
I tried to import your Alter Geometry - Rotate Features into my model builder to rotate my grid but, I got this error.
OP asked about rotating each polygon about its own centroid, not a group centroid. Personally I export a shapefile to Microstation, rotate, then reimport. But it's a pain and attributes are lost.
Press A key while rotating to enter a specific rotation angle.
ArcGIS Pro - https://pro.arcgis.com/en/pro-app/latest/help/editing/move-or-rotate-or-scale-a-feature.htm
ArcGIS Desktop - https://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-existing-features/rotating-a-feature.htm
Josphat
numpy_geometry/arcpro_npg/npg at master · Dan-Patterson/numpy_geometry (github.com)
You should have a python environment as part of the ArcGIS install, also the IDLE IDE.
I'll give this a try. Have to reload python and PyCharm on my computer first, had to reinstall windows a couple of weeks ago.
The post here seems o have an excellent answer from a user called BERA:
Rotating polygons by value from attribute table using ArcPy? - Geographic Information Systems Stack Exchange
It seems to be ready to go, except for adding a field specifying the rotation value for each feature (in this case create a new float field and set them all to 13.5 using field calculator).
You could of course modify the script and set it instead of a field in the cursor (row[1]) to a user-defined parameter for all the features.
'Adept' hmm. But I'd give it a try. That's python, right?
Are you code adept? I have a geometry class that works with arcpy that fills in the basic missing functionality
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.