Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Acad::ErrorStatus es;
ads_name ename;ads_point pt;
if(RTNORM==acedEntSel(_T("\nPlease select a region:"),ename,pt))
{
acutPrintf(_T("\nError!"));return;
}
AcDbObjectId id;
acdbGetObjectId(id,ename);
AcDbObjectIdArray objIds;
objIds.append(id);
AcDbHatch *pHatch=new AcDbHatch();
AcGeVector3d normal(0,0,1);
pHatch->setNormal(normal);
pHatch->setElevation(0);
pHatch->setPattern(AcDbHatch::kPreDefined,_T("SOLID"));
es=pHatch->appendLoop(AcDbHatch::kExternal,objIds);
assert(Acad::eInvalidInput== es);
es=pHatch->evaluateHatch();
postToDb(db, pHatch);
I have chosen a region and want to create a Hatch based on it, but appendLoop cannot return Acad:: eOk.Why?
Solved! Go to Solution.