How to export endpoints by clicking a button?

531
2
09-20-2021 01:52 AM
DavidMrázek
Occasional Contributor II

Hello community,

I have a question for you. How can I make a button that when you click, it will export the endpoints to the newly created FC? Then FC with points will then add it to the map.

 

namespace endpoints
{
    internal class Button1 : Button
    {
        protected override async void OnClick()
        {
            try
            {
                var result = await QueuedTask.Run < () > (() =>
                    {
                        var selectedFeatureSets = MapView.Active.Map.GetSelection();

                       //this is ID for endpoint esri_editing_EndPointArcConstructor


                        return ();
                    });

            catch (Exception ex)
            {
                MessageBox.Show($@"výjimka: {ex}");
            }
        }
    }
}

 

I will be very happy for any advice. Thank you!!!
Have a nice day

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

Please post in a single community space


... sort of retired...
DavidMrázek
Occasional Contributor II

Already deleted

0 Kudos