//定义事件
Editor ed = doc.Editor;
ed.PointMonitor += new PointMonitorEventHandler(ed_PointMonitor);
//事件执行函数
void ed_PointMonitor(object sender, PointMonitorEventArgs e)
{
//拾取当前实体对象提交
FullSubentityPath[] fsp = e.Context .GetPickedEntities();
if (fsp.Length > 0)
{
// 显示实体ID
// doc.Editor.WriteMessage(fsp[0].GetObjectIds()[0].ToString());
e.AppendTollTipText(fsp[0].GetobjectIds()[0].ToString());
}
}