///
///点选直到满足条件///
/// 图形数据库
/// 过滤类型,数组
/// 块外
/// 块内
/// 点选到的图元的ObjectId
public static object WhileEntsel(thisEditor ed, Transaction tr,
PromptEntityOptions peo= null, PromptNestedEntityOptions opt = null, IEnumerable entType = null)
{
ed.SetImpliedSelection(new ObjectId[0]); //清空当前选择集
object idOrKeyword = null;
ObjectId idget=ObjectId.Null;bool flag = true;
PromptEntityResult res;
PromptNestedEntityResult pnes;while(flag)
{if (peo != null)
{
res=ed.GetEntity(peo);switch(res.Status)
{casePromptStatus.Keyword:
idOrKeyword=res.StringResult;
flag= false;break;casePromptStatus.Cancel:casePromptStatus.None:casePromptStatus.Error:
flag= false;break;casePromptStatus.OK:
idget=res.ObjectId;break;</