pointMonitor
//开启动态查询
public void PointMonitor()
{
Editor ed = Tools.Editor;
ed.PointMonitor += new PointMonitorEventHandler(ed_PointMonitor);
}
//关闭动态查询
public void PointMonitorQiut()
{
Editor ed = Tools.Editor;
ed.PointMonitor -= new PointMonitorEventHandler(ed_PointMonitor);
}
void ed_PointMonitor(object sender, PointMonitorEventArgs e)
{
FullSubentityPath[] epaths = e.Context.GetPickedEntities();
if (epaths.Length > 0)
{
FullSubentityPath epath = epaths;
Entity ent = Tools.GetEntity(epath.GetObjectIds());
ResultBuffer rb = Tools.GetXData(ent); if (rb != null)
{
TypedValue[] tv = rb.AsArray();
string str;
string pl_num1 = tv.Value.ToString().Split(',');
str =pl_num1;
e.AppendToolTipText(str); } } } 为什么epaths的length是0呢? 很强啊!!!!!!!!!!!!! 回复 mmaoqr 的帖子
可是我获取不到实体啊!! http://bbs.mjtd.com/thread-76131-1-1.html 未看懂....
页:
[1]