Message 1 of 12
AcdbHatch::getLoopAt Problem ...
Not applicable
03-26-2018
05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
try to get hatch boundry vertex by using " getLoopAt " method but Autocad shows some "Assertion Failed" error..
Code::
AcDbHatch* aHac = AcDbHatch::cast(aEnt);
if (aHac->loopTypeAt(ind) & AcDbHatch::kPolyline)
{
Adesk::Int32 loopType;
AcGePoint2dArray vertices;
AcGeDoubleArray bulges;
aHac->getLoopAt(ind,loopType,vertices,bulges);
int nver = vertices.length();
acutPrintf(_T("\n%d"),nver);
}

