private void Button_Click(object sender, RoutedEventArgs e)
{
...
while (true)
{
SelectionFilter filter = new SelectionFilter(new TypedValue[] { new TypedValue((int)DxfCode.Start, "*POLYLINE") });
PromptSelectionOptions opt = new PromptSelectionOptions();
opt.MessageForAdding = "Выберите элементы";
opt.MessageForRemoval = "Удалите элементы";
PromptSelectionResult entRes = SV.acEd.GetSelection(opt, filter);
if (entRes.Status == AcEd.PromptStatus.Cancel)
{
MessageBox.Show("Cancel");
break;
}
else if (entRes.Status == AcEd.PromptStatus.OK)
{
MessageBox.Show("OK");
}
else if (entRes.Status == AcEd.PromptStatus.None)
{
MessageBox.Show("None");
//break;
}
//else
//{
// break;
//}
}
...
}