Hello everyone
I am new to developing in arcgis pro and I mainly use arcpy library to automate some tasks, now I am facing some limitations in arcpy library and found that it could be done using .net sdk.
to be more specific I want to draw a new dimension feature inside my "dimension layer" using arcgis pro sdk
I only want to insert the coordinate of my feature and using the .net sdk to drow that feature in my layer so
1. how can I accomplish this task using arcgis pro sdk
2. how to use this add in or call this code using python
Hello everyone
I am new to developing in ArcGIS pro and I mainly use arcpy library to automate some tasks, now I am facing some limitations in arcpy library and found that it could be done using .net SDK.
to be more specific I want to draw a new dimension feature inside my "dimension layer" using ArcGIS pro SDK
I only want to insert the coordinate of my feature and use the .net SDK to drow that features in my layer so
1. how can I accomplish this task using ArcGIS pro SDK
2. how to use this add-in or call this code using python
Hi,
You can call python script from ArcGIS Pro add-in. More info here:
I think there is no possibility to call add-in from python. From python you can call ArcGIS Pro CoreHost application.
How to create feature from ArcGIS Pro add-in you can find here:
https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Editing
If you create feature using feature layer, it will be automatically shown on map.
Thanks a lot your answer was really helpful, but it took me some time to be able to apply it successfully as I am still learning about SDK and C# that's why I am a bit late to reply.
Now I can do both:
*Calling python script using ArcGIS add-in thanks to you
*Calling ArcGIS or custom dll files and add-ins using python thanks to this link
https://tereshenkov.wordpress.com/2017/04/24/call-arcgis-pro-net-sdk-class-library-from-python/
the problem now in creating new features especially dimension features
to be more clear I have coordinates of the start and endpoint of this dimension feature all I want is to draw that feature, I have tried several approaches but failed, is there a simpler example that can demonstrate how it is done?
Hi,
You can draw some features on map using AddOverlayAsync method . Sample is here:
https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/OverlayExamples
Hope it helps to create dimension features.