设置实体为选中状态
/// <summary>
/// 设置实体为选中状态
/// </summary>
private void SetPickfirstSet(Entity ent)
{
Editor ed = doc.Editor;
ObjectIdCollection objs = new ObjectIdCollection();
objs.Add(ent.ObjectId);
ed.SetImpliedSelection(new ObjectId[0]);
ObjectId[] ids = new ObjectId[objs.Count];
objs.CopyTo(ids, 0);
ed.SetImpliedSelection(ids);
}
/// 设置实体为选中状态
/// </summary>
private void SetPickfirstSet(Entity ent)
{
Editor ed = doc.Editor;
ObjectIdCollection objs = new ObjectIdCollection();
objs.Add(ent.ObjectId);
ed.SetImpliedSelection(new ObjectId[0]);
ObjectId[] ids = new ObjectId[objs.Count];
objs.CopyTo(ids, 0);
ed.SetImpliedSelection(ids);
}