using arcgis pro .net sdk using python

321
5
12-27-2021 12:36 AM
Khalid_Elejla
New Contributor II

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 

Tags (3)
0 Kudos
5 Replies
Khalid_Elejla
New Contributor II

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 

0 Kudos
GintautasKmieliauskas
Regular Contributor II

Hi,

You can call python script from ArcGIS Pro add-in. More info here:

https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/analy... 

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.

0 Kudos
Khalid_Elejla
New Contributor II

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?

0 Kudos
GintautasKmieliauskas
Regular Contributor II
0 Kudos
Aashis
by Esri Contributor
Esri Contributor
0 Kudos