Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a number of these PointMonitors in different tools which all work flawlessly. I have one tool that is never finding any entities in the PointMonitor Event. It's so basic that I just don't understand why it's doing this. In the below code it always exits due to paths being null or empty. The TransientGraphics that update do so as they should, so I know the PointMonitor is working. I checked my Aperture setting in case it got set to 0, but it's 10 as always.
Any ideas why it's not finding any entities?
private void Editor_PointMonitor(object sender, PointMonitorEventArgs e)
{
_currentPoint = e.Context.RawPoint;
UpdateTransGraphics(_currentPoint);
FullSubentityPath[] paths = e.Context.GetPickedEntities();
if (paths == null || paths.Length == 0)
return;
ObjectId[] ids = paths[0].GetObjectIds();
if (ids == null || ids.Length == 0)
return;
ObjectId id = ids[0];
if (id.ObjectClass.DxfName != RXClass.GetClass(typeof(CogoPoint)).DxfName)
return;
NextPtId = id;
}
Solved! Go to Solution.