问题在摸索中已解决,
- private void SelectObject(object sender, PromptSelectionResultEventArgs e)
- {
- int iCount = e.Result.Value.Count;
- if (iCount > 1)
- {
- ObjectId[] oi = new ObjectId[iCount - 1];
- oi[0] = e.Result.Value[iCount - 1].ObjectId;
- ed.SetImpliedSelection(oi);
- }
- }
这样做是只选中最新选中的那个对象, |