Hi,
When we generate a FC and then add features, the FC is automatically updated with the Extents of the features. However, that can lead to an inability to set the dataframe extents to our required values.
Is there currently a way to update the extent of a Feature Class via code? It can be done in manually ArcGIS Pro via Catalog.
Thanks,
Adam
There are two ways -
1. The Pro SDK DDL operation exposes the addition/deletion of attributed and spatial indexes. If you add an index to a pre-existing index, the DDL operation recalculates a feature class exent. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic15869.html
2. You can call the Recalculate Feature Class Extent GP tool using the Pro SDK; please refer to the ProConcepts-Geoprocessing
Hi Aashis,
Thanks for the information.
I am sorry but I don't think I was clear enough. I need to put my own (larger) values into the Extents of the Feature Class. The default values created by Pro will not allow me to place the Feature Class in the dataframe in the position I need.
I can see that Desktop does not allow this either.
FAQ: Is It Possible to Set the Extent of a Feature Class Programmatically Using ArcObjects (esri.com...
Thanks,
Adam