高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】how to use oddbhatchexplode90 properly
how to use oddbhatch::explode() properly ??
how to use oddbhatch::explode() properly ??
hello.
i try to divide hatch object for simpler objects. i found oddbhatch::explode. unfortunately this method generates unknown expectation (not oderror) maybe i do something not properly. please give me some advice. following i present this code
try {
oddbobjectidarray loopids;
oddbhatchptr phatch = oddbhatch::createobject();
pblock->appendoddbentity(phatch);
phatch->setassociative(false);
phatch->setpattern(oddbhatch::kpredefined, "solid");
phatch->sethatchstyle(oddbhatch::knormal);
loopids.append(id);
phatch->appendloop(oddbhatch::kpolyline, loopids);
oddbvoidptrarray pvoidarray;
//vvvvvvvvvvvvvvvvvvvvvvvvvvv
phatch->explode(pvoidarray); //throwing unknown exception
//^^^^^^^^^^^^^^^^^^^^^^^^^^^
oddbvoidptrarray::iterator iter = pvoidarray.begin();
oddbvoidptrarray::iterator iterend = pvoidarray.end();
//厖厖厖厖厖
}
catch (oderror& e)
{
//.............
}
|