How to export endpoints by clicking a button?

162
2
a month ago
DavidMrázek
New Contributor III

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
New Contributor III

Already deleted

0 Kudos