ADZ168 发表于 2009-1-9 11:12:00

请教,选择集如何清除?

如题,很多资料上都写着SetImpliedSelection()来清除pickfirst集。现在我这边使用的2006,发现没有这个函数。不知道怎么才能清除选择集,很急,希望大大们能帮忙。示例如下:
//得到pickfirst集
PromptSelectionResult selectionRes = ed.SelectImplied();
//如果没有pickfirst集
if (selectionRes.Status == PromptStatus.Error)
{
//请求用户选择实体
PromptSelectionOptions selectionOpts = new PromptSelectionOptions();
selectionOpts.MessageForAdding = "\nSelect objects to list: ";
selectionRes = ed.GetSelection(selectionOpts);
}
else//如果有pickfirst集,清除它
{
ed.SetImpliedSelection(new ObjectId);
}

lvbaoqi 发表于 2009-1-9 21:30:00

acedSSFree()
页: [1]
查看完整版本: 请教,选择集如何清除?