Hello, I try to programmatically measure the length of several lines that are not in the same layer at the same time. After that I want to write the individual distances in the form (there is no problem with that ...). Unfortunately, I don't know how to write a method that would measure individual lines for me.
What I have tried:
namespace ProAppModule1
{
internal class Delka : Button
{
protected override void OnClick()
{
Form1 formular = new Form1();
double delka = new double();
var lyrs = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>();
MapView.Active.SelectLayers(lyrs.ToList());
var openTableBtnCmd = FrameworkApplication.GetPlugInWrapper("esri_editing_table_openTablePaneButton") as ICommand;
if (openTableBtnCmd != null)
{
openTableBtnCmd.Execute(null);
}
formular.richTextBox1.Text = delka.ToString();
formular.Show();
}
}
}
Sorry for the wrong explanation, I'll try better.
I described the individual things in the picture, and now my idea, I would like the individual lines to be measured after pressing the button and then write their lengths in the form (I already have it ready, this is not a problem).
Perhaps it is understandable and understandable.
I will be happy for any advice or help.
Thank you.