Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a class CMajUsekMonitor derived from AcEdInputPointMonitor.
In method ...monitorInputPoint(const AcEdInputPoint &input, AcEdInputPointMonitorResult &output) I need to draw temporay line, and for amhasizing I need it draw with bigger thickness.
I try this, but it doesnot work (in drawing I have LWDISPLAY on):
How force Autocad to draw thick line.
Acad::ErrorStatus CMajUsekMonitor::monitorInputPoint(const AcEdInputPoint &input, AcEdInputPointMonitorResult &output)
{
if (input.pointComputed())
{
getNearest(input.computedPoint());
auto &traits = input.drawContext()->subEntityTraits();
traits.setColor(2);
traits.setLineWeight(AcDb::kLnWt140);
traits.setSelectionMarker(2);
AcGePoint3d pts[2] = { asPnt3d(m_itLom->bod), asPnt3d((m_itLom + 1)->bod) };
input.drawContext()->geometry().polyline(2, pts);
if (m_bInfo)
acedGrText(-1, m_itLom->GetInfo(), 0);
}
return Acad::eOk;
}
Solved! Go to Solution.