publicstaticclassCommands{[CommandMethod("AddPointMonitor")]publicstaticvoidAddPointMonitor(){ActiveUtil.Editor.PointMonitor+=newPointMonitorEventHandler(MyPointMonitor);}[CommandMethod("RemovePointMonitor")]publicstaticvoidRemovePointMonitor(){ActiveUtil.Editor.PointMonitor-=newPointMonitorEventHandler(MyPointMonitor);}publicstaticvoidMyPointMonitor(objectsender,PointMonitorEventArgse){if(e.Context==null){return;}FullSubentityPath[]fullEntPath=e.Context.GetPickedEntities();if(fullEntPath.Length>0){try{using(Transactiontr=ActiveUtil.TransactionManager.StartTransaction()){Entityent=fullEntPath.First().GetObjectIds().First().GetObject<Entity>();if(ent.){}//e.AppendToolTipText("\n The tool tip is working! yaaay! The Entity is a " + ent.GetType().ToString());ActiveUtil.Editor.WriteMessage("\n"+ent.GetType().ToString());tr.Commit();}}catch(System.Exceptionex){ActiveUtil.Editor.WriteLine(ex.ToString());}}}}