Message 1 of 10

Not applicable
12-21-2013
11:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I see a lot of threads about this topic, but none seem to answer my questions. I have a custom entity (derived from AcDbPolyline). In it's Draw override it draws a lot of extra lines and circles with calls like:
wd->subEntityTraits().setSelectionMarker(someLongValue); // someLongValue is different for each circle, of course
wd->geometry().circle(pt1, r1, normal());
I am trying to override subHighlight to highlight only the geometry of my entity that's under the mouse. I thought this would do it:
Acad::ErrorStatus CvWSPolyline::subHighlight(const AcDbFullSubentPath& subId /* = kNullSubent */, const Adesk::Boolean highlightAll /* = false */) const { const Adesk::GsMarker gsMarker = subId.subentId().index(); if (showThis(gsMarker)) return AcDbPolyline::subHighlight(subId, highlightAll); return Acad::eOk; }
But gsMarker is always 0. Isn't setSelectionMarker they right way to set this, or is something else wrong here?
Solved! Go to Solution.