Hi!
At now the only way to create feature class is to execute GP tool Create Feature Class. I would know if it will be possible to create feature class with some method (as it is in ArcObjects – IFeatureWorkspace.CreateFeatureClass) in future versions of the ArcGIS Pro SDK? Or such method will never be exist by some reasons?
Solved! Go to Solution.
As far as I understand, the ArcGIS Pro SDK will not provide an API that performs any DDL statements at the underlying datasource. DDL can be performed only using proper GP-Tools.
But: You can call GP-Tools from within the ArcGIS Pro SDK using the Geoprocessing class from the ArcGIS.Desktop.Core.Geoprocessing namespace. So you can create your own API and expose extension methods to the ArcGIS Pro SDK types like ArcGIS.Core.Data.Geodatabase based on calling GP-Tools from within the SDK...
throught toolbox interface, its python/arcpy equivalent... then there is this the the 'net' types ArcGIS Pro SDK | ArcGIS for Desktop which I haven't explored but you may want to have a check, in the links, you will also find the GitHub examples page ProSnippets · Esri/arcgis-pro-sdk Wiki · GitHub that should get you rolling pretty fast.
Thanks for your answer, but I'm interested in .NET ArcGIS Pro SDK method to create feature class. At now this method doesn't exist In my opinion executing of GP tool is not native way for .NET SDK so I wonder if something like IFeatureWorkspace.CreateFeatureClass will be in future versions ArcGIS Pro SDK.
You would have to pose this question to the development team...
As far as I understand, the ArcGIS Pro SDK will not provide an API that performs any DDL statements at the underlying datasource. DDL can be performed only using proper GP-Tools.
But: You can call GP-Tools from within the ArcGIS Pro SDK using the Geoprocessing class from the ArcGIS.Desktop.Core.Geoprocessing namespace. So you can create your own API and expose extension methods to the ArcGIS Pro SDK types like ArcGIS.Core.Data.Geodatabase based on calling GP-Tools from within the SDK...
Ok, I got it... Thank you. I finally found this information on ProConcepts-Geodatabase-Architecture:
The ArcGIS.Core.Data API is a DML-only (Data Manipulation Language) API. This means that all schema creation and modification operations such as creating tables and feature classes, creating and modifying fields, enabling attachments, and so on, need to be performed using the Geoprocessing API.